Thanks Rob, now I get it.  I'll try the level filter... sounds perfect.

 

Don Taylor 

From: Rob Prouse [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 4:18 AM
To: Log4NET User
Subject: RE: root level logger using other logger level

 

Don,

 

The root logger does not inherit the other logger levels, all of your
other logger levels below root inherit the appenders from the root
logger. So your EnterpriseApplicationIntegration will inherit the root
appender and log to trafficControl.log.

 

You have two choices here,

 

1.      Add a level filter to your TrafficControl appender to only log
ERROR and FATAL.

2.      On your other loggers, set the attribute additivity="false" so
they do not inherit the TrafficControl appender. The only problem with
this is that Error and Fatal messages from your other logs will not go
to TrafficControl.

 

Does this make sense or do you need some examples?

 

Rob Prouse

 

From: Don Taylor [mailto:[EMAIL PROTECTED] 
Sent: May-29-08 5:58 PM
To: log4net-user@logging.apache.org
Subject: root level logger using other logger level

 

We have multiple loggers set up for various services that make up our
system.  I think I have the service configured to log ERRORs (and FATAL)
to one file for all code, then qualified a couple separate thread based
services to log debug type information to other files.  Instead I see
DigitalBridgeTrafficControl INFO message in trafficControl.log, where I
thought should ONLY see ERROR and FATAL.

Does a root logger inherit other logger levels, or did I just screw the
configuration up?

...

Reply via email to