2015-10-25 16:59 GMT+03:00 Hani Nabwani <nav....@gmail.com>: > Tomcat version 8.0.28. > Os: linux.3.14.44-32.39. > > I am running tomcat8, before that i ran tomcat7 with no problems. > After new tomcat8 release i uninstalled tomcat7 and installed tomcat8. > Then the log file of my app is never created, i tried to search (find > command) i get nothing, also i tried to find log4j.properties file, > also i cant find it. > Where tomcat8 save the log file? > Where tomcat8 save the log4j.properties file. > > My log4j. properties file is: > log4j.rootLogger=ERROR, CA, FA > log4j.appender.CA=org.apache.log4j.ConsoleAppender > log4j.appender.CA.Target=System.out > log4j.appender.CA.layout=org.apache.log4j.PatternLayout > log4j.appender.CA.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} > %-5p %c:%L - %m%n > log4j.appender.FA=org.apache.log4j.RollingFileAppender > log4j.appender.FA.File=${catalina.base}/logs/D12.log > log4j.appender.FA.MaxFileSize=5MB > log4j.appender.FA.MaxBackupIndex=10 > log4j.appender.FA.layout=org.apache.log4j.PatternLayout > log4j.appender.FA.layout.ConversionPattern=[%d{yyyy-MM-dd HH:mm:ss}] > [%-5p] [%c:%L]: %m%n > log4j.logger.com.datastax.driver.core=ERROR
There is no such file in default Tomcat configuration (as distributed by tomcat.apache.org). Tomcat by default uses java.util.logging. It is possible to reconfigure it to use Log4J 1.x (and some 3-rd party distributions provided such configuration), but that is not the default configuration. https://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q5 http://tomcat.apache.org/tomcat-8.0-doc/logging.html Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org