# \#logging

**URL:** https://community.temporal.io/tag/logging/46.md

[Latest](https://community.temporal.io/latest.md) · [Categories](https://community.temporal.io/categories.md) · [Tags](https://community.temporal.io/tags.md)

---

## [Logging Format in ECS](https://community.temporal.io/t/logging-format-in-ecs/19671)

<div class="topic-metadata">

**Author:** [@mauriciogeneroso](https://community.temporal.io/u/mauriciogeneroso)\
**Replies:** 1\
**Last updated:** [July 1, 2026, 12:52pm UTC](https://community.temporal.io/t/logging-format-in-ecs/19671 "2026-07-01T12:52:18Z")

</div>

Hi guys, I would like to get the Temporal server logs (history, frontend, matching and worker) in ECS format ( ECS logging libraries | ECS logging libraries ). But what it seems is that the default Temporal log in Json …

---

## [Workaround for SLF4J version](https://community.temporal.io/t/workaround-for-slf4j-version/19252)

<div class="topic-metadata">

**Author:** [@matthew-percy\_cba](https://community.temporal.io/u/matthew-percy_cba)\
**Replies:** 2\
**Last updated:** [February 17, 2026, 9:09pm UTC](https://community.temporal.io/t/workaround-for-slf4j-version/19252 "2026-02-17T21:09:53Z")

</div>

When logging via the ReplayAwareLogger (Workflow.getLogger), key value pairs added via the fluent API in SLF4J get put in the message field, rather than their own field. Eg: Workflow.getLogger(AWorkflowImpl.class).atInf…

---

## [Question: loglevel and stdout/stderr configuration](https://community.temporal.io/t/question-loglevel-and-stdout-stderr-configuration/19159)

<div class="topic-metadata">

**Author:** [@kimpi](https://community.temporal.io/u/kimpi)\
**Replies:** 0\
**Last updated:** [January 9, 2026, 11:39am UTC](https://community.temporal.io/t/question-loglevel-and-stdout-stderr-configuration/19159 "2026-01-09T11:39:07Z")

</div>

hey all :waving\_hand: we are running temporal in an azure k8s cluster - deploying it via helm. I was wondering about the amount of logs we are seeing and wanted to configure it accordingly to reduce some logs in some en…

---

## [Is it possible to log workflow and activity Temporal UI?](https://community.temporal.io/t/is-it-possible-to-log-workflow-and-activity-temporal-ui/18699)

<div class="topic-metadata">

**Author:** [@cristianocz](https://community.temporal.io/u/cristianocz)\
**Replies:** 2\
**Last updated:** [November 25, 2025, 5:26pm UTC](https://community.temporal.io/t/is-it-possible-to-log-workflow-and-activity-temporal-ui/18699 "2025-11-25T17:26:35Z")

</div>

I’m working on improving observability for our Temporal workflows and activities. According to the observability documentation, Temporal provides comprehensive logging capabilities as part of its observability features. …

---

## [OpenTelemetry locate workflow from error](https://community.temporal.io/t/opentelemetry-locate-workflow-from-error/18653)

<div class="topic-metadata">

**Author:** [@jj1](https://community.temporal.io/u/jj1)\
**Replies:** 2\
**Last updated:** [November 14, 2025, 8:38am UTC](https://community.temporal.io/t/opentelemetry-locate-workflow-from-error/18653 "2025-11-14T08:38:39Z")

</div>

Hi everyone! We’re currently running our .NET workers in Kubernetes and using the OpenTelemetry Collector to handle all our traces, metrics, and logs. These are then exported to Elastic via APM. Most of the data shows u…

---

## [Shim exporter dropping 'unknown' span attributes added by temporal](https://community.temporal.io/t/shim-exporter-dropping-unknown-span-attributes-added-by-temporal/18365)

<div class="topic-metadata">

**Author:** [@Harman\_singh\_Siddhu](https://community.temporal.io/u/Harman_singh_Siddhu)\
**Replies:** 1\
**Last updated:** [September 18, 2025, 1:22pm UTC](https://community.temporal.io/t/shim-exporter-dropping-unknown-span-attributes-added-by-temporal/18365 "2025-09-18T13:22:52Z")

</div>

Temporal does add workflow/activity attributes by default — but with the shim only a few survive into Tempo I am facing couple of issues trace id from temporal is not flowing to my worker hence trace\_id and span\_id …

---

## [Remove execution info from workflow/activity logs in python](https://community.temporal.io/t/remove-execution-info-from-workflow-activity-logs-in-python/17160)

<div class="topic-metadata">

**Author:** [@ReyJust](https://community.temporal.io/u/ReyJust)\
**Replies:** 1\
**Last updated:** [April 16, 2025, 12:38pm UTC](https://community.temporal.io/t/remove-execution-info-from-workflow-activity-logs-in-python/17160 "2025-04-16T12:38:24Z")

</div>

Hello wondering, if it’s possible to pass a parameter to remove temporal data from the logger? E.g remove ({'activity\_id': '2', 'activity\_type': 'print\_msg', 'attempt': 1, 'namespace': 'default', 'task\_queue': 'onboardin…

---

## [Handling Internal Temporal Exceptions Without Disrupting Workflow Execution](https://community.temporal.io/t/handling-internal-temporal-exceptions-without-disrupting-workflow-execution/16888)

<div class="topic-metadata">

**Author:** [@apocai](https://community.temporal.io/u/apocai)\
**Replies:** 2\
**Last updated:** [April 1, 2025, 1:52pm UTC](https://community.temporal.io/t/handling-internal-temporal-exceptions-without-disrupting-workflow-execution/16888 "2025-04-01T13:52:59Z")

</div>

I’m currently working with Temporal workflows using the Java SDK and Temporal version 1.17.0. I’ve encountered a StatusRuntimeException with the message NOT\_FOUND: Workflow task not found. This exception occurs during th…

---

## [Temporal integration to promtail / Loki for logs and visibility store](https://community.temporal.io/t/temporal-integration-to-promtail-loki-for-logs-and-visibility-store/12988)

<div class="topic-metadata">

**Author:** [@Inamullah](https://community.temporal.io/u/Inamullah)\
**Replies:** 0\
**Last updated:** [July 29, 2024, 8:19am UTC](https://community.temporal.io/t/temporal-integration-to-promtail-loki-for-logs-and-visibility-store/12988 "2024-07-29T08:19:01Z")

</div>

Hi , Can temporal be used for promtail / Loki for logs and also is the temporal visibility store compatible with Promtail / loki like it is with elastic search

---

## [Temporal-matching logs](https://community.temporal.io/t/temporal-matching-logs/11469)

<div class="topic-metadata">

**Author:** [@AlEXy](https://community.temporal.io/u/AlEXy)\
**Replies:** 2\
**Last updated:** [March 27, 2024, 7:22am UTC](https://community.temporal.io/t/temporal-matching-logs/11469 "2024-03-27T07:22:02Z")

</div>

temporal-matching trying to write logs in service field, but in our index format like service.name etc. Can we somehow tell to write logs correct to our index?

---

## [How to include data from workflow input into activity logger as child parameters - to be printed in each log](https://community.temporal.io/t/how-to-include-data-from-workflow-input-into-activity-logger-as-child-parameters-to-be-printed-in-each-log/11053)

<div class="topic-metadata">

**Author:** [@Ashish\_Dahiya](https://community.temporal.io/u/Ashish_Dahiya)\
**Replies:** 1\
**Last updated:** [February 20, 2024, 4:01pm UTC](https://community.temporal.io/t/how-to-include-data-from-workflow-input-into-activity-logger-as-child-parameters-to-be-printed-in-each-log/11053 "2024-02-20T16:01:31Z")

</div>

using typescript SDK - in temporal I wish to add a logger inside activities such that - as child parameter to that logger I should be able to add, any data available in workflow input so assume my workflow A calls acti…

---

## [Temporal worker debug logs contain "NewTimer" and "ExecuteActivity" records](https://community.temporal.io/t/temporal-worker-debug-logs-contain-newtimer-and-executeactivity-records/9967)

<div class="topic-metadata">

**Author:** [@denis0](https://community.temporal.io/u/denis0)\
**Replies:** 0\
**Last updated:** [October 31, 2023, 9:07am UTC](https://community.temporal.io/t/temporal-worker-debug-logs-contain-newtimer-and-executeactivity-records/9967 "2023-10-31T09:07:06Z")

</div>

Hi, I noticed that logs from my temporal worker binary contain debug level entries with messages “NewTimer” and “ExecuteActivity”. I do not log that explicitly. “NewTimer” seems to be logged on workflow.Sleep and workf…

---

## [Logging in temporal workflow & Activities](https://community.temporal.io/t/logging-in-temporal-workflow-activities/9836)

<div class="topic-metadata">

**Author:** [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Replies:** 1\
**Last updated:** [October 19, 2023, 9:26pm UTC](https://community.temporal.io/t/logging-in-temporal-workflow-activities/9836 "2023-10-19T21:26:18Z")

</div>

What’s the best logging mechanism for temporal workflows & activities and other places, which can be initialized at one place & can be propagated to all places. In TypeScript. Thank you

---

## [DataCloneError from workflowInfo sink parameter](https://community.temporal.io/t/datacloneerror-from-workflowinfo-sink-parameter/9648)

<div class="topic-metadata">

**Author:** [@hannahb](https://community.temporal.io/u/hannahb)\
**Replies:** 1\
**Last updated:** [September 29, 2023, 8:22pm UTC](https://community.temporal.io/t/datacloneerror-from-workflowinfo-sink-parameter/9648 "2023-09-29T20:22:16Z")

</div>

Temporal server version 1.21.4 using Typescript SDK @temporalio - 1.7.0 using node 16 Hello, I’m trying to implement a sink, but when calling the sink function, I keep getting a DataCloneError This seems to come fr…

---

## [Logging in Workflow](https://community.temporal.io/t/logging-in-workflow/9314)

<div class="topic-metadata">

**Author:** [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 3:02pm UTC](https://community.temporal.io/t/logging-in-workflow/9314 "2023-08-28T15:02:29Z")

</div>

Workflows run in a sandboxed environment and cannot do any I/O. Workflow code might get replayed at any time, generating duplicate log messages. Can anybody explain these two statements in detail? These are from the te…

---

## [Logging in workflow code](https://community.temporal.io/t/logging-in-workflow-code/9313)

<div class="topic-metadata">

**Author:** [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 1:42pm UTC](https://community.temporal.io/t/logging-in-workflow-code/9313 "2023-08-28T13:42:49Z")

</div>

We already have a logger class in place which uses PINO for logging, This is working absolutely fine in activities. But when tried to initialize it in workflow code or when tried to use this logger class in workflow cod…

---

## [How to include logrus logs to include trace id's from workflow context](https://community.temporal.io/t/how-to-include-logrus-logs-to-include-trace-ids-from-workflow-context/7800)

<div class="topic-metadata">

**Author:** [@Akshay](https://community.temporal.io/u/Akshay)\
**Replies:** 0\
**Last updated:** [April 5, 2023, 11:50am UTC](https://community.temporal.io/t/how-to-include-logrus-logs-to-include-trace-ids-from-workflow-context/7800 "2023-04-05T11:50:04Z")

</div>

We can create logrus with context like this log := logrus.WithContext(ctx) Added logrus hooks to fire and attach trace\_id to the log. func (hook \*ContextHook) Fire(entry \*log.Entry) error { if entry.Context != nil { …

---

## [Any restrictions on using log4j2 in workflow class?](https://community.temporal.io/t/any-restrictions-on-using-log4j2-in-workflow-class/196)

<div class="topic-metadata">

**Author:** [@dasriharsha](https://community.temporal.io/u/dasriharsha)\
**Replies:** 4\
**Last updated:** [August 27, 2022, 8:19pm UTC](https://community.temporal.io/t/any-restrictions-on-using-log4j2-in-workflow-class/196 "2022-08-27T20:19:43Z")

</div>

We are starting workflow app as part of the spring boot which has log4j2 dependency. Is it ok to use log4j2 for logging within workflow classes?

---

## [Logging Workflows in Spring Boot Application (java-sdk)](https://community.temporal.io/t/logging-workflows-in-spring-boot-application-java-sdk/5805)

<div class="topic-metadata">

**Author:** [@Hrishikesh\_Chappadi](https://community.temporal.io/u/Hrishikesh_Chappadi)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 3:59pm UTC](https://community.temporal.io/t/logging-workflows-in-spring-boot-application-java-sdk/5805 "2022-08-26T15:59:34Z")

</div>

How do you handle workflow logging in a Spring Boot Application? I can manage Activity logging by making it a Spring Bean. What about workflow logging? I tried using lombok’s slf4j, but I guess I need to add a logging …

---

## [Workflow re-logs messages after being signaled](https://community.temporal.io/t/workflow-re-logs-messages-after-being-signaled/5426)

<div class="topic-metadata">

**Author:** [@nathan\_shields](https://community.temporal.io/u/nathan_shields)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 3:02pm UTC](https://community.temporal.io/t/workflow-re-logs-messages-after-being-signaled/5426 "2022-07-29T15:02:43Z")

</div>

Temporal SDK version 1.11.0 Some relevant sample code from my workflow: public class MyWorkflowImpl extends AbstractBaseWorkflowImpl implements MyWorkflow { Logger logger = Workflow.getLogger(MyWorkflowImpl.class); .…

---

## [Workflow logs of different Runids fall into different log files](https://community.temporal.io/t/workflow-logs-of-different-runids-fall-into-different-log-files/4864)

<div class="topic-metadata">

**Author:** [@gcc](https://community.temporal.io/u/gcc)\
**Replies:** 4\
**Last updated:** [June 9, 2022, 1:53am UTC](https://community.temporal.io/t/workflow-logs-of-different-runids-fall-into-different-log-files/4864 "2022-06-09T01:53:53Z")

</div>

I want to drop into different log files according to the workflow log of different RUNIds

---

## [JSON logging in the go-sdk](https://community.temporal.io/t/json-logging-in-the-go-sdk/2424)

<div class="topic-metadata">

**Author:** [@paymahn](https://community.temporal.io/u/paymahn)\
**Replies:** 2\
**Last updated:** [June 21, 2021, 11:03pm UTC](https://community.temporal.io/t/json-logging-in-the-go-sdk/2424 "2021-06-21T23:03:02Z")

</div>

Is there a canonical way to set up JSON logging in the go-sdk? I see that we can provide our own logger when setting up a worker and I’m wondering if there’s any precedent I can use to set up JSON logging before rolling …
