how to turn on DEBUG logging for individual classes

Sometimes you may not want to turn on DEBUG logging for the whole Yellowfin application because of the copious amounts of log files this will create - especially if you have to leave the DEBUG logging on for a long time.

Never fear! The answer is here!

It is possible to turn on DEBUG logging for individual classes, just add the following line to the file:

or more generally:

log4j.category.<insert full class name here>=DEBUG

To enable reportformat debug logging.
#Report Format logs in specific file.
log4j.appender.rptFormatLog.layout = org.apache.log4j.PatternLayout
log4j.appender.rptFormatLog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %5p: %m%n

Is this article helpful?
1 0 0