handlers
JsonFileHandler
¶
Bases: FileHandler
A log handler to output to a file.
Source code in m/log/handlers.py
__init__(formatter, filename)
¶
StdErrHandler
¶
Bases: StreamHandler
A log handler to print to stderr.
Source code in m/log/handlers.py
__init__(formatter)
¶
Initialize the handler.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
formatter |
Formatter
|
The formatter to use with the handler. |
required |
StdOutHandler
¶
Bases: StreamHandler
A log handler to print to stdout.
Source code in m/log/handlers.py
__init__(formatter)
¶
Initialize the handler.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
formatter |
Formatter
|
The formatter to use with the handler. |
required |