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:[EMAIL PROTECTED]
Sent:   Mon 2/21/2005 6:37 PM
To:     [email protected]
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.




<<winmail.dat>>

Reply via email to