# Does temporal have a Workflow Info Logging?

**URL:** <https://community.temporal.io/t/does-temporal-have-a-workflow-info-logging/12850>\
**Category:** Community Support\
**Tags:** python-sdk\
**Created:** [July 16, 2024, 7:08pm UTC](https://community.temporal.io/t/does-temporal-have-a-workflow-info-logging/12850 "2024-07-16T19:08:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbemis](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@bbemis](https://community.temporal.io/u/bbemis)\
**Post date:** [July 16, 2024, 7:08pm UTC](https://community.temporal.io/t/does-temporal-have-a-workflow-info-logging/12850/1 "2024-07-16T19:08:33Z")

</div>

Hi,

I’m setting up my first workflow on my self hosted version of temporal. I discovered that [workflows](https://python.temporal.io/temporalio.workflow.Info.html) and [activities](https://python.temporal.io/temporalio.activity.Info.html) both have their own Info classes with lots of contextual information.

Is there a way to configure temporal to automatically add these attributes to my logging as context?

or am I better off creating my own ContextManager for logging in each workflow sort of like:

```python
@workflow.defn
class SomeWorkflow:
    @workflow.run
    async def run(self) -> None:
        with WorkflowInfoLogger(workflow.info()):
            logger.info('we did the thing!!!')

```

Ideally, it would be great to have some temporal context on all the log messages we produce, that look something like:

```auto
{
    "message": "we did the thing!!!",
    "run_id": "333e788c-205b-4ace-813c-a529a1d1e3e4",
    "workflow_id": "333e788c-205b-4ace-813c-a529a1d1e3e4",
    "workflow_type": "SomeWorkflow"
}

```

---

<div class="post-metadata">

**Author:** ![Chad\_Retz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chad_retz/32/1396_2.png) [@Chad\_Retz](https://community.temporal.io/u/Chad_Retz)\
**Post date:** [July 16, 2024, 7:11pm UTC](https://community.temporal.io/t/does-temporal-have-a-workflow-info-logging/12850/2 "2024-07-16T19:11:38Z")

</div>

They are already appended to each message by default if you use `workflow.logger` or `activity.logger`. They are also put in the `extra` dict on the log record. The `LoggerAdapter` for each has attributes for doing things such as turning it off as needed.
