emrpy.logging.logger_config
High‑level logging utilities for emrpy.
get_logger(name=”emrpy”) → Returns a namespaced logger seeded with a NullHandler.
configure(…) → Attaches colourised console + (optional) rotating file handler(s) without mutating the root logger.
Functions
|
Attach console + (optional) rotating file handler to one logger. |
|
Return a namespaced logger seeded with |
- emrpy.logging.logger_config.configure(name='emrpy', *, level=20, log_dir=None, filename='emrpy.log', rotate_bytes=5000000, backups=3, fmt='%(asctime)s %(levelname)s ▶ %(name)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S', coloured_console=True)
Attach console + (optional) rotating file handler to one logger.
Calling configure() more than once is a no‑op – handy in notebooks or multi‑import scenarios.
- Return type:
Logger
- emrpy.logging.logger_config.get_logger(name='emrpy')
Return a namespaced logger seeded with
logging.NullHandler
.- Return type:
Logger