OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, color=True, datefmt=None) |
def | formatMessage (self, record) |
Data Fields | |
termwidth | |
Static Public Attributes | |
DEFAULT_COLORS | |
Log formatter with colour support
def __init__ | ( | self, | |
color = True , |
|||
datefmt = None |
|||
) |
:arg bool color: Enables color support. :arg string fmt: Log message format. It will be applied to the attributes dict of log records. The text between ``%(color)s`` and ``%(end_color)s`` will be colored depending on the level if color support is on. :arg dict colors: color mappings from logging level to terminal color code :arg string datefmt: Datetime format. Used for formatting ``(asctime)`` placeholder in ``prefix_fmt``. .. versionchanged:: 3.2 Added ``fmt`` and ``datefmt`` arguments.
def formatMessage | ( | self, | |
record | |||
) |
|
static |
termwidth |