Search code examples
nhibernatelogginglog4netcastle-activerecord

Is there any considerations when using log4net in an application that uses NHibernate or Castle ActiveRecord?


I used log4net in a sample application based on tutorial here. It works very well. But when I use same code and configuration in my main application, nothing works. My application is based on Castle ActiveRecord that itself is based on NHibernate. Both Castle ActiveRecord and NHibernate uses log4net internally. I'm suspicious about conflict between my use of log4net and Castle/NHibernate use of log4net. Am I right? If yes how can solve the conflict?

Thanks In Advance


Solution

  • No, there are no special requirements. The Castle ActiveRecord 2.1.1 release package includes all required dependencies including NHibernate.dll and log4net.dll so unless you overwrite something it's impossible to get the wrong/incompatible versions.