log4net - Exiting the logging from an appender -


is possible configure log4net stops going through rest of appenders if appender got match?

something like:

<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> 

you can specify long list of appenders "active" if referenced in root tag of log4net.config file:

  <root>     <level value="error" />     <appender-ref ref="filelogappender" />   </root> 

you create list of appenders, using "namespace.class" name of appender filter events on each file.

can share bit more requirements , want achieve?


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -