class documentation

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_info_on_extra 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_info_on_message 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_activity_info_on_extra 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_logger Underlying logger usable for actions such as adding handlers/formatters.
def __init__(self, logger: logging.Logger, extra: Optional[Mapping[str, Any]]): (source)

Create the logger adapter.

def process(self, msg: Any, kwargs: MutableMapping[str, Any]) -> Tuple[Any, MutableMapping[str, Any]]: (source)

Override to add activity details.

activity_info_on_extra: bool = (source)

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.

activity_info_on_message: bool = (source)

Boolean for whether a string representation of a dict of some activity info will be appended to each message. Default is True.

full_activity_info_on_extra: bool = (source)

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.

Underlying logger usable for actions such as adding handlers/formatters.