Hi there,

I am a newbie into the Log4J world and therefore to the Log4J development as well.

I developed a new service/application using the log4j for logging purposes and it is great. This service is using the DailyRollingFileAppender class for rotating the log files on a daily basis.

Meanwhile, my customer wants to retrieve the log file from the previous day. The DailyRollingFileAppender appender do not makes that job if there is no logging activity and it shall be generated even if it has zero bytes length size.

I will give you an example to explain my problem:

* On the 22 January 2003 the service generated the logging information to the accessGW.log file.

* On the 23 January 2003 there was no accesses to the service.

* On the 24 January 2003, there was still no accesses to the service and therefore the accessGW.log.2003-01-23 was not created.


In order to overcome this issue I changed the DailyRollingFileAppender class for making the rotation of files even if there is no logging activity.

I would like to know if you (Log4J team) are interested on the changes for the DailyRollingFileAppender class ?
If so, I will submit it to this mailing list.

Best regards,
Nuno Carvalho









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

Reply via email to