Take a look at the DailyRollingFileAppender. It does exactly what you want.
- Heikki > -----Original Message----- > From: Christian Fernandes [mailto:[EMAIL PROTECTED]] > Sent: 12. maaliskuuta 2002 11:08 > To: Log4j-User (E-mail) > Subject: Changing log files every day? > > > Hi! > > I've got one question, well actually I've got a lot of > questions about log4j, but I'll just include one of them in > this mail =) > > Does the log4j API support changing log files during run-time > and add a date string to the filename? > > ex) > All logs during the 12th of March will we written to: > "somelog-20020312.log" and when the date changes to 13th of > March the logs should be written to "somelog-20020313.log". > This is to be used on a application server, so it is quite > important that this can be handled during runtime. > > > ...anyone know any good sites for example code and > documentation for log4j? I find the included documentation > pretty basic. > > thx. > > /Christian > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>