Dear All,

I am using Log4Net.dll (version 1.2.10.0) and Rolling File Appender.

First Issue:
I am not able to change the format in which the log files are generated. I 
mean, I want the log files to be names as LogFileName.Date.log. I read some of 
the posts on Log4NetDash and made appropriate changes to make this happen. If 
my rolling style is Composite, the new log file is named as 
LogFileName.Date.log and the old log file as LogFileName.Date.log.1. I would 
like the old log file to be named as LogFileName.Date.1.log. Is this possible. 
If so, kindly let me know how to do this.

Second Issue:
At midnight, when the application/service is running, at the change of date, a 
new log file is getting generated, but the name remains the same as the 
previous day. I mean, if the service is running and the name of the log file is 
LogFileName.20110727.log, the newly generated log file also remains with the 
same date.  Is this a bug or am I missing some configuration here as well.

If these issues can be resolved using the Rolling File Appender configurations 
itself, that would be great. If not, should I create a custom appender to 
satisfy my requirement.

Thanks in Advance.


Warm Regards,
Shrikanth Nanjunda Rao.


________________________________
Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.

Reply via email to