Logging System

Custom logging infrastructure.

class ensemble_analyzer._logger.formatter.ColoredFormatter(fmt: str | None = None, datefmt: str | None = None, use_colors: bool | None = None)[source]

Log formatter with optional ANSI color support.

COLORS = {10: '\x1b[90m', 20: '', 30: '\x1b[33m', 40: '\x1b[31m', 50: '\x1b[1;31m'}
RESET = '\x1b[0m'
format(record: LogRecord) str[source]

Format a log record, optionally wrapping with ANSI color codes.