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:
http://logging.apache.org/log4net/release/manual/introduction.html


-----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")?

Eg.

<appender name="one" ...>
  ...
</appender>

<appender name="two" ...>
  ...
</appender>

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

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




--
View this message in context:
http://apache-logging.6191.n7.nabble.com/BUT-NOT-tp53010p53012.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Mime
View raw message