Rolling Logs in log4net or log4j?
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.
log4j has a DailyRollingFileAppender. Has it not been ported to log4net, yet?
Did you have any problem getting log4net working initally? I have spent a little time trying to get it working in a Windows Forms application, so far without luck. Did you use the 1.1 binary that comes with the beta 8 release?
Hoo boy. After KayJay's post about complex numbers and 3 dimensional spaces I though this would be something about logarithms and Microsoft's .Net solution to the 4th dimension. Moving on now...
Hmmm. I'll try it again on Sunday.
Fog Creek Home