log.debug() invoked even if no log4j.properties specified?

1 message Options
Embed this post
Permalink
Andy Faibishenko

log.debug() invoked even if no log4j.properties specified?

Reply Threaded More More options
Print post
Permalink
I was profiling my application with YourKit and I noticed that the getBufferDebugInfo() method was being invoked in the FIXMessageDecoder.parseMessage() method even though I did not specify any logging and did not provide a log4j.properties file.  It appears that the application incurs the overhead of building the debug string for each message and then discarding it.

I don't know if this is working as designed or a defect?  Is there something in the logging framework which defaults the detail level to DEBUG if there is no loggers specified? It seems weird to default to DEBUG.

Thanks!