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 17:25:38 GMT
Apologies, I didn't read your original properly.
Your configuration should work as it stands:, i.e.:

- Alpha.Import.Core and its child loggers will log to "two" only
- Alpha and all its child loggers except Alpha.Import.Core and children will
log to "one" only:

<logger name="Alpha">
  <level value="DEBUG" />
  <appender-ref ref="one" />

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

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

Thanks, but additivity is set to false in the "Alpha.Import.Core" logger. If
I also set it to false in the "Alpha" logger, then I don't see any logging
from classes in the namespace "Alpha.Web.UI" or "Alpha.Util". Is this
expected behaviour?

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

View raw message