I've been using NLog recently Greg. It's got a nuget package and is pretty
simple to use.
I've used log4net in the past but it was a while ago. I remember it being a
bit frustrating at times but I haven't had the same issues with NLog. I'm
sure they're all much of a muchness but it's working for me at the moment.

Greg

On Sun, Mar 18, 2012 at 6:42 PM, Ben Scott <[email protected]> wrote:

> 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" <[email protected]> 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****
>
>

Reply via email to