Release Notes
1.2.0
Release date: 2026-05-10
Stdlib-logging bridge plus stdlib-style top-level API so projects can drop import logging entirely.
Added
mollog.configure(format=...)accepts stdlib%(asctime)s-style format strings (anddatefmt=), rendered through the newStdlibStyleFormatter.mollog.configure(capture_stdlib=True)— default — installs aStdlibBridgeHandleron stdlib's root logger so third-party libraries that emit throughloggingflow through mollog's hierarchy. Disable withcapture_stdlib=False.Logger.set_level()acceptsLevel | str | int, and propagates tologging.getLogger(name).setLevel(...)so noisy libraries are silenced at the source.- Top-level helpers on the root logger:
mollog.trace,mollog.debug,mollog.info,mollog.warning,mollog.error,mollog.critical,mollog.exception,mollog.set_level. - Stdlib-compatible level constants:
mollog.TRACE,DEBUG,INFO,WARNING,ERROR,CRITICAL. - New public surface:
StdlibBridgeHandler,StdlibStyleFormatter,capture_stdlib_logging,release_stdlib_logging.
Changed
LoggerManager.shutdown()and_reset()also tear down any installed stdlib bridges.
Breaking changes
None. All additions are backward compatible.
1.1.0
Release date: 2026-04-18
Added
configure(filename=...)now wires up both aStreamHandler(terminal) and aFileHandlerin one call, withfilemode,file_level,file_formatter, andencodingkwargs.- Pydantic Logfire integration:
LogfireHandler,configure_logfire(...),Logger.fire(...). - New
Contextnamespace replaces the function-based context API;Context.scope(name, **attrs)doubles as a logfire span. RichFormatter(replaces the previousRichHandlershape).- Underscore-prefixed internal modules (
_formatter,_handler,_logger, …) — public API is unchanged from prior versions where the export still exists.
Changed
- Promoted
richfrom an optional extra to a required runtime dependency.
1.0.0
Release date: 2026-04-12
First stable release.
What's included
- Thread-safe logger and manager operations
configure()andshutdown()helpers for application lifecycle- Structured
extrafields andbind()for reusable logger context - Context-local fields via
contextvars:bind_context(),scoped_context(),reset_context() - Exception and stack capture:
exc_info=,stack_info=,logger.exception(...) TextFormatterandJSONFormatterStreamHandler,FileHandler,RotatingFileHandler,TimedRotatingFileHandler,QueueHandler,NullHandlerQueueListenerwith drain window on shutdown- Optional
RichHandlerbehindmolcrafts-mollog[rich]
Breaking changes
None — this is the initial stable release.