Where do you place log4j.jar? In WEB-INF/lib or in some shared location? And where do you place log4j.xml? In WEB-INF/classes and use autoconfiguration or some other location and use manual confguration?
Jake On 5/18/2010 6:50 AM, G.Cholakov wrote: > > Hi, > > The problem is the following - I have several web apps, running in Tomcat 6. > I've noticed that all logs go to one file, which is specific for only one of > the web applications! Each file in each application is named unique. > What I did wrong? > > Here is the log4j.xml: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> > <log4j:configuration debug="true" > xmlns:log4j="http://jakarta.apache.org/log4j/"> > <appender name="ROLLING_FILE_DEBUG" > class="org.apache.log4j.RollingFileAppender"> > > > > > <layout class="org.apache.log4j.PatternLayout"> > > </layout> > </appender> > <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender"> > <layout class="org.apache.log4j.PatternLayout"> > > </layout> > </appender> > <logger name="com.sbc" additivity="false"> > <priority value="debug" /> > <appender-ref ref="ROLLING_FILE_DEBUG" /> > </logger> > <logger name="org.apache.log4j.xml" additivity="false"> > <priority value="OFF" /> > <appender-ref ref="STDOUT" /> > </logger> > <root> > <priority value="info" /> > <appender-ref ref="STDOUT" /> > </root> > </log4j:configuration> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
