# Setup timezone in Kafka Connect log4J

**URL:** <https://forum.confluent.io/t/setup-timezone-in-kafka-connect-log4j/2148>\
**Category:** Kafka Connect\
**Created:** [30 June 2021 15:24 UTC](https://forum.confluent.io/t/setup-timezone-in-kafka-connect-log4j/2148 "2021-06-30T15:24:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmacphail](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmacphail/32/385_2.png) [@mmacphail](https://forum.confluent.io/u/mmacphail)\
**Post date:** [30 June 2021 15:24 UTC](https://forum.confluent.io/t/setup-timezone-in-kafka-connect-log4j/2148/1 "2021-06-30T15:24:01Z")

</div>

Hello,

Quick question: is it possible to output the timezone in the kafka-connect logs ?  
What should be the log4j configuration to do so ?  
Has anyone ever encountered this need ?

Thank you

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [5 July 2021 06:04 UTC](https://forum.confluent.io/t/setup-timezone-in-kafka-connect-log4j/2148/2 "2021-07-05T06:04:30Z")

</div>

Hi,

did you check [Kafka Connect Logging | Confluent Documentation](https://docs.confluent.io/platform/current/connect/logging.html#using-the-kconnect-log4j-properties-file)

Timezone should be something like this:

```auto
%d{yyyy-MM-dd/HH:mm:ss.SSS/zzz}

```

hth

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [12 July 2021 06:05 UTC](https://forum.confluent.io/t/setup-timezone-in-kafka-connect-log4j/2148/3 "2021-07-12T06:05:30Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
