Thanks for the pointer.

Kamal Ahmed-3 wrote:
> 
> You can also use:
> 
> Timestamp File Appender
> 
> Appender creates a new log file on each start of an application, with
> the additional feature that the log file name contains the current
> timestamp.
> 
> Appender is pretty simple, it is derived from FileAppender and replaces
> string {timestamp} from the value of File property with the current
> timestamp.
> 
> Timestamp pattern is user configured by TimestampPattern property that
> has the same choice of formats as java.text.SimpleDateFormat
> 
> So, the solution is very flexible.
> 
> Here are the source code and configuration example file:
> 
> TimestampFileAppender.java timestampFileAppender.configuration
> 
> Located @
> http://wiki.apache.org/logging-log4j/UsefulCode
> 
> -Kamal.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Time-stamp-in-file-name-tf3619129.html#a10162408
Sent from the Log4j - Users mailing list archive at Nabble.com.


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

Reply via email to