The Core worker thread is now started lazily by the first Core.configure()
call that installs a processor pipeline. Constructing a Core, setting only a
level, or applying a profile that returns None (such as no_init) no longer
spawns a worker thread. Importing plainlog still starts it through the
default profile.
StdInterceptHandler now drops stdlib log records when no processor pipeline
is configured, matching Logger. Previously it could enqueue records into a
worker queue that was never started or no longer had a consumer.
Expanded API documentation and docstrings for ConsoleRenderer,
processor helpers, testing helpers, the stdlib bridge, and Core.
Internal cleanup: removed unused internals (Core._print_error,
_frames._format_exception, _utils.eval_dict) and consolidated duplicated
profile builders and name-splitting logic. No public API change.
Renamed the internal Core.min_level_no attribute to Core.min_level.
Core.configure() no longer closes the processors it replaces —
reconfiguration is an attach/detach operation.
Logger.configure() was replaced by configure_log(), which can apply a
named profile, explicit processors, or both. Profiles now return a processor
list, or None to leave the pipeline unchanged.
configure_log(..., close_before_configure=True) closes the previously
registered processors before installing the new pipeline.
Core.close() now releases the resources of every registered processor but
keeps the worker thread running. The previous behaviour (release and stop)
lives in the new Core.shutdown(), which is also what runs at interpreter
exit.
Record schema flattened: the extra key is gone. Keyword arguments
passed to logger.info(...), bind() and contextualize() now become
top-level fields on the record instead of being nested under
record["extra"].
SimpleFormatter and JsonFormatter write the rendered string to
record["formatted_message"] instead of overwriting record["message"].
JsonFormatter serializes a fixed set of keys plus additional_keys;
arbitrary user fields are no longer included automatically.
SubProcessor runs its nested processors on a shallow copy of the
record (previously deepcopy).
Logger.error(), critical() and exception() request caller info
(function, line, ...) by default.
Documentation and benchmark examples now create a child logger with
logger.new() and log through it rather than logging to the root
logger. The benchmark also logs through a bound name so CPython's
imported-name call-site overhead does not skew the comparison.
Logger.new() auto-detected names keep the class/nesting prefix from
co_qualname on Python 3.11+ (e.g. module.Class.method), falling back to
module.method on 3.10; <locals> frame markers are stripped.
eval_extra, eval_lambda_extra and remove_extra_items processors —
fields are plain top-level record keys now.
The extra parameter of Logger(...) and the verbose parameter of
Logger(...), Logger.new() and Logger.configure(); pass keyword
arguments directly and use caller_info=True for caller info.
Logger.new() inherits the parent logger's verbose setting when
verbose is not given, instead of always defaulting to False.
SimpleFormatter now renders a full ISO timestamp and appends extra
instead of dropping it.
The default profile now uses SimpleFormatter (writing to stdout).
develop honors a stream kwarg; default, file and
fingerscrossed_file accept a format kwarg.
Profiles now set verbose explicitly, so applying a profile no longer
inherits a previous verbose setting. Logger.configure(verbose=None) and
Logger.new(verbose=None) keep inheriting, as before.
std_handler_default and std_handler_develop now forward their kwargs
(e.g. stream, format) to the wrapped profile.
Documentation corrections: profile count, changelog comparison links, and
the missing callable logger(...) form plus manual context() /
reset_context() usage.
Corrected Logger docstrings: removed the non-existent core attribute
and refreshed the configure(), new() and __call__() descriptions.
Everything is a processor.configure(handler=...) is replaced by
configure(processors=[...]). The Core runs an ordered processor list.
The usual pipeline is filter, format, handle.
Formatters are processors.SimpleFormatter, DefaultFormatter,
JsonFormatter and ConsoleRenderer now set record["message"] and return
the record instead of returning a string.
Merged formatters.py and handlers.py into plainlog.processors. The
plainlog.formatters and plainlog.handlers modules are gone.
Log level is now a plain int. The LevelNamedTuple was removed.
record["level"] is an int (e.g. 10, 20, 30), and the human-readable
name is stored alongside it as record["level_name"] (a str).
Record schema simplified. The separate context and kwargs keys are now
merged into the record's extra dict. Caller/context variables and per-call
keyword arguments are all available under record["extra"].
Exception handling.exc_info is replaced by exception, a
RecordException (pickle-safe) stored under record["exception"].
level_name (the human-readable level name) is written directly onto every
record alongside level.
Performance improvements on the logging hot path: time() is used instead of
datetime for the record timestamp, and benchmarks against stdlib logging were
improved.
Renamed internal entry points; the main interface now lives on logger
(logger.debug, logger.log, logger.configure, ...). The Core is no
longer part of the public surface.