Log4Net setting up log degree
How do I make Log4net just log Info degree logs? Is that also feasible? Can you just set a limit?
This is what I have, and also it logs Info and also over as I would certainly anticipate. Exists anything i can do to make it just log details?
<logger name="BrokerCollection.Model.XmlDocumentCreationTask"> <appender-ref ref="SubmissionAppender"/> <level value="Info" /> </logger>
Within the definition of the appender, I think you can do something similar to this:
<appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender"> <filter type="log4net.Filter.LevelRangeFilter"> <param name="LevelMin" value="INFO"/> <param name="LevelMax" value="INFO"/> </filter> ... </appender>