This isn't good for me. I need that the file name will have a time stamp
when it's created not when it is rolled over.

-----Original Message-----
From: Norma Spence [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 3:53 PM
To: Log4J Users List
Subject: RE: smart file name

Have you tried using DailyRollingFileAppender but
have the file roll over every hour or every minute 
using a properties file, the configuration would be:

DatePattern='.'yyyy-MM-dd-HH for every hour
or 
DatePattern='.'yyyy-MM-dd-HH-mm for every minute don't know if 
you know them but check out this link to see all options for all types
of Appenders..
http://www.vipan.com/htdocs/log4jhelp.html

-----Original Message-----
From: Yair Ogen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 8:50 AM
To: [EMAIL PROTECTED]
Subject: smart file name


 
Hi,
 
I'de like to know if you can define a file name that appends to its name
the current time stamp (I don't mean rolling by date - the
DailyRollingAppender is not good for me).
 
What I need is that if I define a name like: kuku.log I want actually
kuku_2004-11-24-12:19.log or kuku.log_2004-11-24-12:19 or something of
the kind.
 
Is it possible?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to