can't you just cast the Logger to CustomLogger?

if (logger instanceof CustomLogger) {
 CustomLogger c = (CustomLogger) logger;
 c.customLoggersMethod();
}

Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation
(269)-923-5278

"A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation."





"Mohan.Radhakrishnan" <moh...@fss.co.in> 
10/29/2010 08:28 AM
Please respond to
"Log4J Users List" <log4j-user@logging.apache.org>


To
log4j-user@logging.apache.org
cc

Subject
Re: Extending Logger







Solved this. 

Is there a way to get my custom logger that log4J has configured and set
some values using reflection ? The API does not seem to return the correct
type. It returns Logger always and not CustomLogger.
-- 
View this message in context: 
http://old.nabble.com/Extending-Logger-tp30018462p30085289.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


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


Reply via email to