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
Post a Comment