You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by JJ <jj...@cirrhus9.com> on 2014/03/20 20:43:46 UTC
log4.properties not honoring properties
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
application.
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
http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j
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
Listener....
Sure could use a hand in getting the FileServer.log file logging to
/logs/FileServer.log
Thank you for your valuable time.
Have a Great Day!
--
John Jones
cirrhus9.com
Re: log4.properties not honoring properties
Posted by JJ <jj...@cirrhus9.com>.
Gary:
I will investigate your suggestion.
Thank you.
John Jones
cirrhus9.com
On 03/21/2014 08:26 PM, Gary Gregory wrote:
> What happens if you try the latest bug fix version: 1.2.17?
>
> Gary
>
>
> On Thu, Mar 20, 2014 at 3:43 PM, JJ <jj...@cirrhus9.com> wrote:
>
>> 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
>> application.
>> 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
>> http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j
>> 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
>> Listener....
>>
>> Sure could use a hand in getting the FileServer.log file logging to
>> /logs/FileServer.log
>>
>> Thank you for your valuable time.
>> Have a Great Day!
>>
>> --
>> John Jones
>> cirrhus9.com
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4.properties not honoring properties
Posted by Gary Gregory <ga...@gmail.com>.
What happens if you try the latest bug fix version: 1.2.17?
Gary
On Thu, Mar 20, 2014 at 3:43 PM, JJ <jj...@cirrhus9.com> wrote:
> 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
> application.
> 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
> http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j
> 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
> Listener....
>
> Sure could use a hand in getting the FileServer.log file logging to
> /logs/FileServer.log
>
> Thank you for your valuable time.
> Have a Great Day!
>
> --
> John Jones
> cirrhus9.com
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory