Configure Log4net to write to multiple files

These answers were helpful, but I wanted to share my answer with both the app.config part and the c# code part, so there is less guessing for the next person. <log4net> <appender name=”SomeName” type=”log4net.Appender.RollingFileAppender”> <file value=”c:/Console.txt” /> <appendToFile value=”true” /> <rollingStyle value=”Composite” /> <datePattern value=”yyyyMMdd” /> <maxSizeRollBackups value=”10″ /> <maximumFileSize value=”1MB” /> </appender> <appender name=”Summary” … Read more

log4net vs. Nlog

I was recently tasked to “prototype up some loggin’” for an upcoming project. I didn’t have any logging framework experience. I researched, ran through tutorials, made toy apps, etc. on Log4Net, NLog, and Enterprise Library for a few days. Came back 3-4 weeks later and put them together into a cohesive demo. Hopefully some of … Read more