I want to disable console logging messages spawned by org.springframework.* stuff. My log4j.xml looks like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration PUBLIC
"-//APACHE//DTD LOG4J 1.2//EN"
"http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="consoleAppender" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c{1}] %m %n" />
</layout>
</appender>
<logger name="org.springframework">
<level value="off" />
</logger>
<logger name="com.myapp">
<level value="all" />
<appender-ref ref="consoleAppender"/>
</logger>
</log4j:configuration>
But it doesn't work. I still see a lot of DEBUG, INFO messages produces by org.springframework on my console.
What should I change to make it works?