0

Can someone tell me how to turn off DEBUG information in log4j? this is my log4j2.properties

log4j.rootLogger=INFO, stdout
log4j.logger.org.apache.camel=INFO
appender.console.type = Console
appender.console.name = console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
rootLogger.level = INFO
rootLogger.appenderRef.console.ref = console

thanks for your help!

Lino
  • 19,604
  • 6
  • 47
  • 65
  • Are you sure that Camel is using log4j? Or are these "Debug" messages printed directly to `System.out` or even through an entirely different logging framework – Lino Jul 19 '21 at 13:25
  • No, actually I'm not sure. I didn't write this code. Do you know How I can see if these DEBUG message come from different logging framework? – Tony Agosta Jul 19 '21 at 13:32
  • I solved this problem in an other thread: [Hikari Pool disable Debug mode](https://stackoverflow.com/questions/68469502/solvedhikari-pool-disable-debug-mode) – Tony Agosta Jul 26 '21 at 11:34
  • Yes, with this is the right way to solve this problem. – Tony Agosta Jul 26 '21 at 11:38

0 Answers0