logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <prat...@gmail.com>
Subject Re: custom log4j DRFA file name
Date Wed, 30 Jul 2008 18:01:52 GMT
Maybe

log4j.appender.T=org.apache.log4j.DailyRollingFileAppender
log4j.appender.T.File=${catalina.base}/logs/application.log
log4j.appender.T.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.T.layout=org.apache.log4j.PatternLayout
log4j.appender.T.layout.ConversionPattern=[%d{EE MMM d kk:mm:ss yyyy}]
[%-5p] [%t] %c - %m%n

or something similar in your log4j props?

You should check out:

http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/RollingFileAppender.html


m.harig wrote:
> hi all
>
>     how do i set log file name with timestamp . say for example
> logfile_22_05_2008.log  is there any option for this? anyone help me out of
> this
>   

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