Reputation: 2680
I want to use NHibernate in my project, and it comes with log4net by default.
In my opinion, it would be a wiser choice to go for Nlog as it still gets updates, log4net on the other hand is completely outdated.
Is there a best choice because I don't really believe in using outdated technologies in my application. On the other hand, it's the one being delivered in the package of nhibernate...
recommendations would be welcome!
* replace outdated with 'nolonger-updated'
Upvotes: 1
Views: 900
Reputation: 2096
You do know that NHibernate does not require usage of Log4Net for it's logging, right? There is an interface that you can implement and configure NHibernate to use as an alternative.
Upvotes: 0
Reputation: 15217
In Nhibernate 3 dependency on log4net is broken. I would suggest you using recently released beta and combine it with NLog.
Upvotes: 8
Reputation: 17018
I would not say that log4net is outdated. Software does not rust. Log4net is rather mature and though there are things that could be improved it certainly does its job. If you have any problem with log4net you can always fix it yourself. I would go for log4net as NHibernate uses log4net. Having two log frameworks does not make sense to me.
Upvotes: 5