Fair enough Dave, my apologies. For those interested - The Log4j documentation doesn't appear to say anything about handling dynamic log names as I've described. The closest thing seems to be the DailyRollingAppender - however it appends the date after the '.log' (i.e. "error.log.06-15-2006").
I was able to find a library online from minaret.biz that does handle the job. It will produce log file names in a [prefix].date.[suffix] format (i.e. "error.06-15-2006.log"), and by virtue of that, it will automatically create new log files when the date changes. For those interested, here's the link - http://minaret.biz/tips/datedFileAppender.html Thanks again, Darren -----Original Message----- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 9:38 AM To: Struts Users Mailing List Subject: [OT] Re: Dynamic log names Darren Hall wrote: > I have a question about naming log files for my web application. > I'd like to append the date into the name of my log files. Is there a way > that I can generate daily logs with a filename along the lines of > "event.2006-05-03.log" and "error.2006-05-03.log"? > You might want to consider looking at the Log4J documentation, as it's really a more... appropriate place to discover things about Log4J than the Struts mailing list. DailyRollingFileAppender does not do quite that, but may suit your needs anyway. Dave --------------------------------------------------------------------- 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]