You could generate files named like event.log.2006-05-03 using the DailyRollingFileAppender. See http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFi leAppender.html Or you could write your own appender.
> -----Original Message----- > From: Darren Hall [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 15, 2006 8:53 AM > To: 'Struts Users Mailing List' > Subject: Dynamic log names > > > Hello again all, > > I'm using Log4j 1.2.13 with Struts 1.2.9 on Tomcat 5.5. > I have the logging with Log4j now working properly and > outputting log messages properly. > > 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"? > > Thanks, > > Darren > > > > --------------------------------------------------------------------- > 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]