Formatter
JsonFormatter
A custom JSON formatter for Python logging.
This formatter outputs log records as JSON strings with specific fields.
- logman.formatter.JsonFormatter.formatTime(record, datefmt=None)
Formats the log record’s timestamp.
- logman.formatter.JsonFormatter.format(record)
Formats the log record as a JSON string.
PlainFormatter
A custom plain text formatter for Python logging.
This formatter outputs log records as plain text strings with specific fields.
- logman.formatter.PlainFormatter.formatTime(record, datefmt=None)
Formats the log record’s timestamp.
- logman.formatter.PlainFormatter.format(record)
Formats the log record as a plain text string.