temporalio.workflow.LoggerAdapter
Adapter that adds details to the log about the running workflow.
Values added to extra are merged with the extra dictionary from a logging call, with values from the logging call taking precedence. I.e. the behavior is that of merge_extra=True in Python >= 3.13.
| Method | __init__ |
Create the logger adapter. |
| Method | is |
Override to ignore replay logs. |
| Method | log |
Override to potentially disable the sandbox. |
| Method | process |
Override to add workflow details. |
| Method | unsafe |
Disable the sandbox during log processing. Can be turned back on with unsafe_disable_sandbox(False). |
| Instance Variable | disable |
Undocumented |
| Instance Variable | full |
Boolean for whether a workflow_info value will be added to the extra dictionary with the entire workflow info, making it present on the LogRecord.__dict__ for use by others. Default is False. |
| Instance Variable | log |
Boolean for whether logs should occur during replay. Default is False. |
| Instance Variable | workflow |
Boolean for whether a temporal_workflow dictionary value will be added to the extra dictionary with some workflow info, making it present on the LogRecord.__dict__ for use by others. Default is True. |
| Instance Variable | workflow |
Boolean for whether a string representation of a dict of some workflow info will be appended to each message. Default is True. |
| Property | base |
Underlying logger usable for actions such as adding handlers/formatters. |
Create the logger adapter.
Override to ignore replay logs.
Override to potentially disable the sandbox.
Override to add workflow details.
Disable the sandbox during log processing. Can be turned back on with unsafe_disable_sandbox(False).
Boolean for whether a workflow_info value will be added to the extra dictionary with the entire workflow info, making it present on the LogRecord.__dict__ for use by others. Default is False.
Boolean for whether logs should occur during replay. Default is False.
Boolean for whether a temporal_workflow dictionary value will be added to the extra dictionary with some workflow 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 workflow info will be appended to each message. Default is True.
Underlying logger usable for actions such as adding handlers/formatters.