2
我有以下的log4j.xml配置:的log4j.xml顯示com.foo,但隱藏com.foo.bar
<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>
這將顯示每個日誌中com.foo *。我想禁用com.foo.bar。*中的日誌記錄。我該怎麼做呢。