Disabling INFO Logging Messages
Musomi Motilewa <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
Is there anyway to disable the INFO logging messages? I've tried
placing both log4j.properties and log4j.xml files in the
WEB-INF/classes folder of my application. I also have
commons-logging-1.0.4.jar in my WEB-INF/lib directory. Here is the
contents of both files.
---------- log4j.properties ----------
log4j.rootLogger=ERROR, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.SimpleLayout
log4j.logger.org.apache=ERROR
----------------------------------------
---------- log4j.xml ----------
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="A2"
class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.SimpleLayout"/>
</appender>
<root>
<priority value="ERROR" />
<appender-ref ref="A2"/>
</root>
</log4j:configuration>
----------------------------------------
Thanks.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click