logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bender Heri <hben...@ergonomics.ch>
Subject RE: Extending Logger
Date Tue, 02 Nov 2010 12:05:26 GMT
What is the reason you want extend the Logger? 
Heri

> -----Original Message-----
> From: Mohan.Radhakrishnan [mailto:mohanr@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-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org


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


Mime
View raw message