Enable debug mode for log kafka java client code

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.

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.

1 Like