logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Having mixed loggers in log4j.xml ?
Date Mon, 10 Nov 2003 17:22:27 GMT

Yup, it's allowed.  The name is just a String, doesn't have to be a
class name.  Of course, if you don't actually have anything that does
Logger logger = Logger.getLogger("StringLogger") in your code, the
StringLogger will never be used and thus is meaningless in the
configuration ;)

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Mandar Mangalvedhekar [mailto:mmangalvedhekar@us-south.net]
>Sent: Monday, November 10, 2003 12:21 PM
>To: log4j-user@jakarta.apache.org
>Subject: Having mixed loggers in log4j.xml ?
> Can we have a mixture of loggers in log4j.xml file ?
>Some of the loggers are actual classes in the application
> a.b.c.Test.class
> <logger name="a.b.c.Test">
> ...
> </logger>
>while some others are plain strings
> <logger name="StringLogger">
>  ......
>Is this allowed ?

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

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

View raw message