I am working on an application which uses log3net extensivly. I have noticed that once the log file gets to big it starts out with .log, .log.1 , .log.2 , .log.3 , and so on. How do i get it to just say .log and not .log.X .
+3
A:
It looks like the log is configured to use a RollingFileAppender. That keeps log files until a configured maximum size is hit. The log is saved with the .1, .2, etc. extensions and a new one is created.
If you want to just keep appending, try looking at the FileAppender.
Here's a link to some config examples. http://logging.apache.org/log4net/release/config-examples.html
Eric
2009-07-28 22:49:35