logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JJ <jjo...@cirrhus9.com>
Subject log4.properties not honoring properties
Date Thu, 20 Mar 2014 19:43:46 GMT
Greetings to the list:

We have a log4j v.1.2.14 on my CentOS 6.4 host with tomcat v6.0.24

Our Application Servlet is version 2.5 and we did not develop this
our classes directory has a single log4j.properties with this content:
log4j.rootLogger=DEBUG, R
log4j.appender.R = org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File = logs/FileServer.log
log4j.appender.R.Append = true
log4j.appender.R.DatePattern = '.'yyy-MM-dd
log4j.appender.R.layout = org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss}
%c{1} [%p] %m%n

My concern is that the FileServer.log file is being written to
/var/log/tomcat6 and not /logs

Following the direction at
specifically, the /Note:  /that says
"These steps are *not* needed if you just want to use log4j in your own
web application. --- In that
case, just put |log4j.jar| and |log4j.properties| into |WEB-INF/lib| and
|WEB-INF/classes| of your web application.

which I have done and bounced the tomcat6 service.

What I notice are these things:
There is a
/etc/tomcat6/log4j.properties as well.

the FileServer.log files shows "log5jImp" ?
2014-03-20 12:07:21 *Log5jImp* [DEBUG] Starting FileServer Restlet

Sure could use a hand in getting the FileServer.log file logging to

Thank you for your valuable time.
Have a Great Day!

John Jones

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message