Greg,
I’ve had the same issues in the past, and often resolved them with internal debugging. Here is a clip from the log4net website. http://logging.apache.org/log4net/release/faq.html -- go to the ‘How do I enable log4net internal debugging?’ section. Rob From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Ben Scott Sent: Sunday, 18 March 2012 7:42 PM To: ozDotNet Subject: Re: log4net sample You're probably right, in my experience log4net silently fails if there is anything wrong with the configuration. I don't have anything at hand but I have configurations for email and database appenders, I think both in XML and code, that I'll pass in later. Sent from my iPod On 18/03/2012, at 6:34 PM, "Greg Keogh" <g...@mira.net> wrote: Does anyone here use log4net? I used it several years ago but found it to be huge overkill because all I ever wanted to do was write everything to rolling files. I eventually wrote my own lightweight ‘RollingFile’ class and have used it for years. Now my logging needs have become a bit more complicated and I see that the latest log4net has expanded greatly to have all sorts of fancy appenders and filters. I quite like the idea that I can send severe error messages via email and boring stuff to a database (or lots of other interesting combinations like UDP and the event log). I’ve spent some spare time over the last few days trying to get the simplest example of writing to the TraceAppender or ConsoleAppender, but no matter what I do with config files and code I get no output. I have pasted lines out of dozens of examples and web searched until my eyes bleed without hope. Stepping deep inside tells me that the library “is not configured” and it does nothing. Could any kind person give me a minimal example of some code and a config file that writes “Hello” to a TraceAppender so it appears in the output window of VS2010? I am utterly stumped and at wits end. Thanks, Greg