The problem is NHibernates dependany on log4net. I am trying to build an IoC app with interchangable Loggers, and this thing gets in the way.
Is there a build out there without this dependancy or do I have to do some open source code hacking myself?
The problem is NHibernates dependany on log4net. I am trying to build an IoC app with interchangable Loggers, and this thing gets in the way.
Is there a build out there without this dependancy or do I have to do some open source code hacking myself?
There is already an open bug on NHibernate bug tracker regarding this issue and one or more patches already exist so you could use that ones. The problem is that they are not integrated yet on trunk so YMMV...
Yes it's currently a hard dependency. I think you can get what you want by creating an appender for log4net and then injecting your real logger into that appender. So essentially you'll have log4net log to your logging api which will use the real logger you inject.
You may also want to look at this semi-related question: Using Enterprise Library Logging Application Block in NHibernate