This content has been marked as final.
Show 2 replies
-
1. Re: Setting log level lower than threshold for certain classes
jaikiran Apr 16, 2010 6:19 AM (in response to getaceres)Jose Antonio wrote:
I know I could set the Threshold element to DEBUG but this gives me too much information and I'd have to create <category> configurations for every other package in the system except my desired classes, and, as I don't know all the applications installed in the system, that would be impossible.Is there a way to get what I want?
Set the Threshold of the appender to DEBUG and then set the "root logger" priority level to INFO. That way, you won't have to create multiple categories and sepcify the levels:
<appender name="FILE"> ... <param name="Threshold" value="INFO"/> ... </appender> <category name="com.something"> <priority value="DEBUG"/> </category> <root> <priority value="INFO"/> <appender-ref ref="CONSOLE"/> <appender-ref ref="FILE"/> </root>
-
2. Re: Setting log level lower than threshold for certain classes
getaceres Apr 16, 2010 7:06 AM (in response to jaikiran)Thanks, it worked.