Title: Nachricht
Here is a little example:
 
    <appender name="InfoFileAppender" type="log4net.Appender.RollingFileAppender">
      <param name="Threshold" value="INFO" />
      <param name="File" value="..\\..\\LogFiles\\only-info.txt" />
      <param name="DatePattern" value=".yyyyMMdd" />
      <param name="RollingStyle" value="Date" />
      <param name="StaticLogFileName" value="true" />
      <filter type="log4net.Filter.LevelRangeFilter">
        <param name="LevelMin" value="INFO" />
        <param name="LevelMax" value="INFO" />
      </filter>
      <layout type="log4net.Layout.PatternLayout,log4net">
        <param name="ConversionPattern" value="%d [%t] - %m%n" />
      </layout>
    </appender>
-----Urspr�ngliche Nachricht-----
Von: Shaily Goel [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 21. April 2005 07:13
An: [email protected]
Betreff: Severity Threshold

Currently the way log4net works is :
 
If I have set the File Appender threshold to "Info" then it will receive all those messages which has severity greater or equal to Info. For e.g It will receive Error and Warning messages also if threshold of Fileappender is set to "Info".
 
Is there any way by which I can say "Only Info" messages should be logged by FileAppender. Rest all other messages(may be Error/Warning etc) should be discarded.
 
Thanks
Shaily

Reply via email to