logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe <jocular...@hotmail.com>
Subject RE: BUT NOT
Date Tue, 18 Nov 2014 16:55:22 GMT
Use additivity="false" in your configuration - look for "Additivity" in the
log4net user manual:

-----Original Message-----
From: xdzgor [mailto:pk@alpha-solutions.dk] 
Sent: 18 November 2014 10:22
To: log4net-user@logging.apache.org
Subject: Re: BUT NOT

Hi, thanks. What if I want "Alpha.Import.Core" to go to another appender
instead (and all the others to continue to go to appender "one")?


<appender name="one" ...>

<appender name="two" ...>

<logger name="Alpha" additivity="true" BUT NOT "Alpha.Import.Core">
  <level value="DEBUG" />
  <appender-ref ref="one" />

<logger name="Alpha.Import.Core" additivity="false" >
  <level value="DEBUG" />
  <appender-ref ref="two" />

View this message in context:
Sent from the Log4net - Users mailing list archive at Nabble.com.

View raw message