log4net - How to suppress logging message for nHibernate -


I am using log 4net in my application which uses nHibernate now flooding with hibernate messages to my implicit That's what I want to suppress.

I have tried to do this but it is not working.

  & lt; Log4net & gt; & Lt; Appender name = "Event logic" type = "log4net.Appender.EventLogAppender" & gt; & Lt; Param name = "login name" value = "app log" / & gt; & Lt; Param name = "ApplicationName" value = "DataService" /> & Lt; Layout type = "log4net.Layout.PatternLayout" & gt; & Lt; Conversion pattern value = "% date [% thread]% -5 level% logger [% properties {NDC}} -% message% newline" /> & Lt; / Layout & gt; & Lt; Filter type = "log4net.Filter.LoggerMatchFilter" & gt; & Lt; LoggerToMatch value = "NHibernate *" /> & Lt; AcceptOnMatch value = "false" /> & Lt; / Filter & gt; & Lt; / Appender & gt; & Lt; Root & gt; & Lt; Priority value = "all" /> & Lt; Appender-Reef Ref = "Event Logifier" /> & Lt; / Root & gt; & Lt; / Log4net & gt;  

You can add a logger to nHibernate and set up a different level Are:

& Lt; Appender-Rif Ref = "Rolling File Adapter" /> & Lt; / Logger & gt;

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -