Can anyone share insight into performance questions with log4j? Specifically, I have code with various levels of logging running under jboss5. Lots of info, debug, and trace.
If I set a category limit to TRACE like this:
<category name="com.mydomain">
<priority value="TRACE"/>
</category>
But under my appender I have this threshold:
<param name="Threshold" value="DEBUG"/>
Will I still have the performance hit of my TRACE statements going through the logger routines but just not being printed? In other words, would it be less load if I set my category to DEBUG like:
<category name="com.mydomain">
<priority value="DEBUG"/>
</category>
The downside of this is that if I ask my customer to enable TRACE, they would have to change it in two places. But if it's a big performance hit, then we'll consider it.
Thank you!