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> -- View this message in context: http://old.nabble.com/Logs-from-different-web-apps-go-to-same-file-with-log4j-%21-tp28595472p28595472.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
