This article is almost what I nedd, the only thing I'm short on is the ability to add minutes and seconds as well.
My business gole is to create a file name that has not only the date stamp but also the time stamp. Maybe I should create my own Appender? -----Original Message----- From: Ted Gittinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 5:42 PM To: Log4J Users List Subject: Re: smart file name See if this thread helps you out. http://www.mail-archive.com/[email protected]/msg01793.html Yair Ogen wrote: > The time stamp when the file is created. > > -----Original Message----- > From: Ceki Gïlcï [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 24, 2004 4:20 PM > To: Log4J Users List > Subject: Re: smart file name > > > Hello Yair, > > The term *current* timestamp is somewhat vague. Current with respect to what? > > > At 02:50 PM 11/24/2004, Yair Ogen wrote: > >>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]
