core.config.structlog_formatters
Custom logging formatters for jobmon.
Classes
Formatter that shows traditional log format with just the event message. |
Module Contents
- class core.config.structlog_formatters.JobmonStructlogEventOnlyFormatter
Bases:
logging.FormatterFormatter that shows traditional log format with just the event message.
Parses structlog JSON output and extracts just the event field, hiding all the context/label fields. Shows timestamp, level, logger, and event. Context is still sent to OTLP, but console shows clean traditional log messages.
Format: YYYY-MM-DD HH:MM:SS [LEVEL] [logger.name] Event message
Initialize with traditional log format.
- format(record: logging.LogRecord) str
Format record showing only the event message with standard fields.