benchmarkstt.normalization.logger module¶
-
class
benchmarkstt.normalization.logger.
DiffLoggingDictFormatterDialect
[source]¶ Bases:
benchmarkstt.normalization.logger.DiffLoggingFormatterDialect
-
class
benchmarkstt.normalization.logger.
DiffLoggingFormatter
(dialect=None, diff_formatter_dialect=None, title=None, *args, **kwargs)[source]¶ Bases:
logging.Formatter
-
diff_logging_formatter_dialects
= {'dict': <class 'benchmarkstt.normalization.logger.DiffLoggingDictFormatterDialect'>, 'text': <class 'benchmarkstt.normalization.logger.DiffLoggingTextFormatterDialect'>}¶
-
format
(record)[source]¶ Format the specified record as text.
The record's attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.
-
-
class
benchmarkstt.normalization.logger.
DiffLoggingTextFormatterDialect
[source]¶ Bases:
benchmarkstt.normalization.logger.DiffLoggingFormatterDialect
-
class
benchmarkstt.normalization.logger.
ListHandler
[source]¶ Bases:
logging.StreamHandler
-
emit
(record)[source]¶ Emit a record.
If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an 'encoding' attribute, it is used to determine how to do the output to the stream.
-
logs
¶
-
-
class
benchmarkstt.normalization.logger.
Logger
[source]¶ Bases:
object
-
logger
= <Logger benchmarkstt.normalize (INFO)>¶
-
stack
= []¶
-
title
= None¶
-