|
We need to configure log4net to create a new log file each time our Windows Forms application starts. It seems like the RollingFileAppender should handle this, but I can't find an example that does this. The examples I find are all the same, keeping 10 logs of up to 100k each. Is there a way to configure log4net to create a new file each time the application starts, keeping the most recent 3? I'd also like to name the log files based on the start time.
We're using log4net 1.20-beta 8, which is a port of log4j, so if you know how to do it in either one, I'd like to hear about it.
Thanks, Ted
|