Tuesday September 20, 2011 at 19:53

Log4Net—A Missing Link

OK, I’m not sure about you, but after about half an hour at the end of the day today I had Log4Net up and running like a champ, almost laughing out of my chair at how easy it is to set up.  This definitely deserves much more coverage than this gratuitous post, so I will be sharing more tomorrow as I play with it some more—staring at the screen, like a fool, as I start and stop the test service over and over just to see it write out to the log and see the cool log viewer spit out meaningless messages on the screen…just to see it do it.

The grunt work is all in the setup of the configuration file that Log4Net uses, with the rest of the work lying in 2 lines of code, leaving a simple log.Info() method (just one of several to choose from…) to write wherever you want to shout out from code. 

That’s it.

There is more to this that made me act like an 8 year old with a new Lego set, but that will have to wait until later.