logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JJ <jjo...@cirrhus9.com>
Subject Re: log4.properties not honoring properties
Date Sat, 22 Mar 2014 04:11:20 GMT
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 <jjones@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


Mime
View raw message