Are you talking about using Log4j for Tomcat logging or just for your own
application logging? For integration with Tomcat, that takes a special
setup....
http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j
Jake
On Thu, 24 Feb 2011 02:29:52 -0800 (PST)
"ssprasad.e" <[email protected]> wrote:
i am using log4j in my project .because of few exceptions printing into
log4j
log file it is taking much time so i want to avoid to append one major
exception in log4j log. can u people help me.
this is my log4j config file , i am using tomcat server
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
</layout>
</appender>
<appender name="rolling-file"
class="org.apache.log4j.RollingFileAppender">
<!-- Keep one backup file -->
<layout class="org.apache.log4j.PatternLayout">
</layout>
</appender>
<root>
<priority value ="debug" />
<appender-ref ref="console" />
<appender-ref ref="rolling-file" />
</root>
</log4j:configuration>
--
View this message in context:
http://old.nabble.com/i-dont-want-to-show-one-exception-is-log4j-log-tp31001676p31001676.html
Sent from the Log4j - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]