5.15.1. logger.CustomFormatter¶
- class eminus.logger.CustomFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)[source]¶
Custom logger formatter.
Methods
converterlocaltime([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_formatdefault_time_format