why do you need Log4Net for nhibernate?
问题 I am going to build my application using asp.net mvc3 and nhibernate 3.2. I decided to use Elmah to log all the error messages. I remember nhibernate supports log4net and use it to log all queries. If I dont care about outputting the queries to the log file, I can use nhibernate profiler to do that, what other reasons will stop me swtiching from log4net to Elmah? 回答1: Well, whether you actively use the logging abilities of NHibernate or not, the NHibernate library's code has dependencies on