sphinx_polyversion.log
Utilities for logging.
Classes
|
A adapter adding arbitrary context information to a log message. |
- class sphinx_polyversion.log.ContextAdapter(logger, extra=None)[source]
Bases:
LoggerAdapter
A adapter adding arbitrary context information to a log message.
- process(msg: str, kwargs: MutableMapping[str, Any]) tuple[str, MutableMapping[str, Any]]
Process the message of a logging call.
Process the logging message and keyword arguments passed in to a logging call to insert contextual information. You can either manipulate the message itself, the keyword args or both. Return the message and kwargs modified (or not) to suit your needs.