logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Oberoi" <aobe...@TechMahindra.com>
Subject RE: Multiple Loggers Logging to Same Appender
Date Tue, 26 Apr 2011 05:32:24 GMT
It is possible however not best practice. If you do this probably you
may want to set the additivity to false or else you'll see duplicate log
messages.

Regards

Amit Oberoi

-----Original Message-----
From: timmy11 [mailto:tim.eapen@gmail.com] 
Sent: Monday, April 25, 2011 7:54 AM
To: log4j-user@logging.apache.org
Subject: Multiple Loggers Logging to Same Appender


Dear All,

Is it possible to configure multiple loggers, logging to the same
appender?

e.g.

log4j.logger.com.xxx.automation.flatfile=DEBUG, AUTOMATION
log4j.logger.com.xxx.automation.service=DEBUG, AUTOMATION

Where AUTOMATION is an appender?

In my example, I am only seeing loggin from the
com.xxx.automation.service
package and not the com.xxx.automation.flatfile package.

What I am seeing is that I am only able to attach 1 logger/category to
an
appender?  Is there any additional set up I have to do?

Thanks,

Tim
-- 
View this message in context:
http://old.nabble.com/Multiple-Loggers-Logging-to-Same-Appender-tp314688
41p31468841.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


============================================================================================================================Disclaimer:
 This message and the information contained herein is proprietary and confidential and subject
to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a>
internally within Tech Mahindra.============================================================================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message