temporalio.activity.LoggerAdapter

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.

Create the logger adapter.

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.

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