I have written an appender that can do that.
http://stauffer.james.googlepages.com/DateFormatFileAppender.java

On 9/18/06, kingwell <[EMAIL PROTECTED]> wrote:
Hi all,
I want to define the log file name pattern like yyyymmdd-mylog.log, how to
do so using log4j?
As the DailyRollingFileAppender is just append the yyymmdd pattern to the
end of the file name, something like mylog.log.yyyymmdd. Do I need to write
my own appender class, or can anyone provide some helpful util class?



Thanks for help!







--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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

Reply via email to