class documentation
class LoggerAdapter(logging.LoggerAdapter): (source)
Constructor: LoggerAdapter(logger, extra)
Adapter that adds details to the log about the running activity.
| Method | __init__ |
Create the logger adapter. |
| Method | process |
Override to add activity details. |
| Instance Variable | activity |
Boolean for whether a temporal_activity dictionary value will be added to the extra dictionary with some activity info, making it present on the LogRecord.__dict__ for use by others. Default is True. |
| Instance Variable | activity |
Boolean for whether a string representation of a dict of some activity info will be appended to each message. Default is True. |
| Instance Variable | full |
Boolean for whether an activity_info value will be added to the extra dictionary with the entire activity info, making it present on the LogRecord.__dict__ for use by others. Default is False. |
| Property | base |
Underlying logger usable for actions such as adding handlers/formatters. |
def process(self, msg:
Any, kwargs: MutableMapping[ str, Any]) -> tuple[ Any, MutableMapping[ str, Any]]:
(source)
¶
Override to add activity details.
Boolean for whether a temporal_activity dictionary value will be added to the extra dictionary with some activity info, making it present on the LogRecord.__dict__ for use by others. Default is True.
Boolean for whether a string representation of a dict of some activity info will be appended to each message. Default is True.
Boolean for whether an activity_info value will be added to the extra dictionary with the entire activity info, making it present on the LogRecord.__dict__ for use by others. Default is False.