5.14.1. logger.CustomFormatter

class eminus.logger.CustomFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)[source]

Custom logger formatter.

Methods

converter

localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,

format(record)

Use different formatting for different logging levels.

formatException(ei)

Format and return the specified exception information as a string.

formatMessage(record)

formatStack(stack_info)

This method is provided as an extension point for specialized formatting of stack information.

formatTime(record[, datefmt])

Return the creation time of the specified LogRecord as formatted text.

usesTime()

Check if the format uses the creation time of the record.

Attributes

default_msec_format

default_time_format

format(record)[source]

Use different formatting for different logging levels.

Parameters:

record – LogRecord object.

Returns:

Formatted log text.