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" <[email protected]>
10/29/2010 08:28 AM
Please respond to
"Log4J Users List" <[email protected]>
To
[email protected]
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: [email protected]
For additional commands, e-mail: [email protected]