Skip to content

Logging Engine

src/core/logging.py is adapted from the shared logger implementation used in the sibling rl-engine project.

Key points:

  • configure_logging(...) and log(...) mirror the rl-engine design: one shared Loguru-backed manager, console/file filters, and file writes protected by filelock.
  • log(message, type=..., priority=..., exception=...) is the only logging call surface used by repository code. Named log types determine the file under the configured logs directory; the default is logs/app.log.
  • Callers that retain a local logger name bind it directly to log; they do not receive a standard-library-style logger object.