logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prakash Kadam" <pka...@nulinkinc.com>
Subject RE: Can I have time stamp in log file name?
Date Tue, 22 Feb 2005 03:59:55 GMT



Hi ambarish,

  Here I am sending a example just look at it.
log4j.rootCategory=, R
log4j.appender.R=DailyRollingFileAppender
log4j.appender.R.File=output/dailyPro.log
log4j.appender.R.DatePattern=.%Y-%m-%d-%H-%M
log4j.appender.R.layout=PatternLayout
log4j.appender.R.layout.ConversionPattern=[slf5s.start]%d{DATE}[slf5s.DATE]%n%p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THREAD]%n%c[slf5s.CATEGORY]%n%l[slf5s.LOCATION]%n%m[slf5s.MESSAGE]%n%n

Regards
Prakash k.

-----Original Message-----
From:	Ambarish Mitra [mailto:ambarish_mitra@persistent.co.in]
Sent:	Mon 2/21/2005 6:37 PM
To:	log4cxx-user@logging.apache.org
Cc:	
Subject:	Can I have time stamp in log file name?
Hi,

Can I have time stamp in log file name?

To elaborate, if my entries in the property files are:
...
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=../logs/example.log
..

Now, I want that instead of log file name: example.log, I want the name as example.log.<time>
of creation, is there any way to accomplish this?

-Ambarish.





Mime
View raw message