log4j.xml show com.foo, but hide com.foo.bar
Posted
by Bas Hendriks
on Stack Overflow
See other posts from Stack Overflow
or by Bas Hendriks
Published on 2010-03-30T10:13:27Z
Indexed on
2010/03/30
10:23 UTC
Read the original article
Hit count: 578
Hi,
I have the following log4j.xml configuration:
<log4j:configuration>
<appender name = "CONSOLE" class = "org.apache.log4j.ConsoleAppender">
<param name = "Target" value = "System.out"/>
<param name = "Threshold" value = "DEBUG"/>
</appender>
<category name = "com.foo">
<appender-ref ref = "CONSOLE"/>
</category>
</log4j:configuration>
This displays every log in com.foo.* . I want to disable logging in com.foo.bar.* . How do i do this.
© Stack Overflow or respective owner