flint.logging ============= .. py:module:: flint.logging Attributes ---------- .. autoapisummary:: flint.logging.ch flint.logging.logger Classes ------- .. autoapisummary:: flint.logging.CustomFormatter Module Contents --------------- .. py:class:: CustomFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None) Bases: :py:obj:`logging.Formatter` A custom logger formatter .. py:method:: format(record) 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. .. py:attribute:: FORMATS .. py:attribute:: blue :value: '\x1b[34;20m' .. py:attribute:: bold_red :value: '\x1b[31;1m' .. py:attribute:: format_str :value: '%(asctime)s.%(msecs)03d %(module)s - %(funcName)s: %(message)s' .. py:attribute:: green :value: '\x1b[32;20m' .. py:attribute:: grey :value: '\x1b[38;20m' .. py:attribute:: red :value: '\x1b[31;20m' .. py:attribute:: reset :value: '\x1b[0m' .. py:attribute:: yellow :value: '\x1b[33;20m' .. py:data:: ch .. py:data:: logger