Java Mailing List Archive

http://www.java2.5341.com/

Home » Log4J Users List »

Can we define multiple Logger instance in a single class file?

manish_goyal

2008-11-23

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,

Could any one tell me how to create multiple Logger instance in a single
class?

Is this possible?

If it is possible then what will be the value for "?". Logger myLogger =
Logger.getLogger("?"); in class file.
and for referring the same Logger instance in log4j.properties file, how we
will be defining the Appender.

I don't want to use rootLogger .

Please respond me as soon as possible.

Thanks.

Regards,
Manish
--
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@(protected)
For additional commands, e-mail: log4j-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.