# Enable debug mode for log kafka java client code

**URL:** <https://forum.confluent.io/t/enable-debug-mode-for-log-kafka-java-client-code/4591>\
**Category:** Clients\
**Created:** [25 March 2022 21:54 UTC](https://forum.confluent.io/t/enable-debug-mode-for-log-kafka-java-client-code/4591 "2022-03-25T21:54:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krithikavv](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/krithikavv/32/1735_2.png) [@Krithikavv](https://forum.confluent.io/u/Krithikavv)\
**Post date:** [25 March 2022 21:54 UTC](https://forum.confluent.io/t/enable-debug-mode-for-log-kafka-java-client-code/4591/1 "2022-03-25T21:54:54Z")

</div>

Hi all,  
Im trying to enable logs debug level for kafka in my java app. I tried to do some settings in log4j but it doesn’t work. can anyone point to me how to enable logging debug in kafka documentation or so ? thanks.

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [5 April 2022 15:58 UTC](https://forum.confluent.io/t/enable-debug-mode-for-log-kafka-java-client-code/4591/2 "2022-04-05T15:58:32Z")

</div>

Can you share you current log4j properties that you’ve tried to edit?

Also, depending on the client library, you wouldn’t be using a log4j property file. Spring, for example, uses Logback, last I checked.
