Does the current version of Log4net have a way to create a RollingFileAppender with a composite rolling style in which minimized files always save this extension (.log in my case)?
An example of the format I would like:
Mylog.log
MyLog.2011-04-10.1.log
MyLog.2011-04-10.2.log
MyLog.2011-04-10.3.log
I found this post that says there is a PreserveLogFileNameExtension property, but it is not included in the official binaries. Is this still true?
If yes: can anyone explain why this property is still not an official part of Log4Net? I'm a bit skeptical about using custom assembly, but maybe I shouldn't be?
I am also interested to know why the function does not save the file extension by default. I do not understand why it will force the user to have all the log files have different extensions.
Edit: Got this by doing this:
1: Download and build the log4net source code
2: Applying these patches: https://issues.apache.org/jira/browse/LOG4NET-64
3: Setting PreserveLogFileNameExtension to "true" in the configuration.
source share