NHibernate 3.2 - how do I turn on logging, preferably without Log4Net?

I may have been unduly harsh on log4net More than a year ago, I had set it up, adding a section in my app. Config file, as suggested in all the blog posts I had read It worked for me briefly, and then mysteriously stopped working. There are many, many questions on SO describing similar unpleasant experiences Have not needed it since then, so ripped the dll and config out of my project in disgust Though I'm certain I've tried this before, and that it silently failed to do any logging whatsoever, I added the following single line back to my code: log4net.Config.

BasicConfigurator.Configure() and lo and behold, it started logging to the VS Output window, just like I wanted So it appears there's no need to configure it at all for simple applications it does the right thing by default. Presumably, it's the complex configuration that trips people up - it seems far too easy to mess things up.

I may have been unduly harsh on log4net... More than a year ago, I had set it up, adding a section in my app. Config file, as suggested in all the blog posts I had read. It worked for me briefly, and then mysteriously stopped working.

There are many, many questions on SO describing similar unpleasant experiences. Have not needed it since then, so ripped the dll and config out of my project in disgust. Though I'm certain I've tried this before, and that it silently failed to do any logging whatsoever, I added the following single line back to my code: log4net.Config.

BasicConfigurator.Configure(); and lo and behold, it started logging to the VS Output window, just like I wanted. So it appears there's no need to configure it at all for simple applications - it does the right thing by default. Presumably, it's the complex configuration that trips people up - it seems far too easy to mess things up.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions