logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kaushal Shriyan <kaushalshri...@gmail.com>
Subject Re: log4j
Date Thu, 08 Jul 2010 04:51:39 GMT
On Wed, Jul 7, 2010 at 8:28 PM, Jacob Kjome <hoju@visi.com> wrote:
>
> Where did you put log4j.properties?  For Tomcat 5.5.xx, it should be in
> CATALINA_HOME/common/classes.
>
> Try adding the following to CATALINA_OPTS....
>
> -Dlog4j.debug=true
>
> Jake
>
Hi Jake

Thanks for the quick reply. is there a way to run log4j appender at a
specified time?

log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/catalina.out
log4j.appender.R.DatePattern='.'yyyy-MM-dd
log4j.appender.R.layout=org.apache.log4j.PatternLayout

I have put the log4j.properties under /opt/tomcat0/common/classes and
have added -Dlog4j.debug=true under CATALINA_OPTS variable.
where do i look for the debug logs.

Please suggest.

Thanks and Regards

Kaushal

---------------------------------------------------------------------
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