如果追加器匹配,是否可以配置为使 log4net 停止遍历其余的追加器?
就像是:
<appender name="TlsReadingAppender" type="log4net.Appender.RollingFileAppender">
<file value="C:\logs\TPOSIn_TlsReading.log" />
<filter type="log4net.Filter.LoggerMatchFilter">
<loggerToMatch value="TPOSIn.ServiceApp.Tls.TlsHandler"/>
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<dontCheckAnyMoreAppenders />
</appender>