tkwant._logging.make_logger¶
-
tkwant._logging.
make_logger
(name)[source]¶ Return a logger with additional information
- Parameters
name (str) – The name of the logger
info (callable) – A function returning additional information as a dict. Dict attributes appear as LogRecord attributes in the logger and can be included in the logger output with an appropriate format.
- Returns
DelayedLogger – Logger instance with additional information and delayed creation.
- Return type
Notes
This function uses the module attributes: level, filter, handler