What is the reason you want extend the Logger? Heri > -----Original Message----- > From: Mohan.Radhakrishnan [mailto:moh...@fss.co.in] > Sent: Thursday, October 21, 2010 1:22 PM > To: log4j-user@logging.apache.org > Subject: Extending Logger > > > The complete Log4J manual discourages us from extending Logger but we use the > recommended pattern > then 'repository' and 'getEffectiveLevel()' are inaccessible because they > are protected in Category. > > public void trace(Object message) { > if (repository.isDisabled(Level.TRACE_INT)) { > return; > } > > if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) { > forcedLog(FQCN, Level.TRACE, message, null); > } > } > > Can we extend Logger ? > > -- > View this message in context: > http://old.nabble.com/Extending-Logger-tp30018462p30018462.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
--------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org