[slf4j-dev] [Bug 74] add getLevel() to Category in log4j-over-slf4j

Newcomb, Michael-P57487 Michael.Newcomb at gdc4s.com
Wed Mar 5 15:00:28 CET 2008


Ceki,

Can you please add 'getLevel()' to the log4j-over-slf4j bridge?

public Level getLevel()
{
  return slf4jLogger.isTraceEnabled() ? Level.TRACE :
    slf4jLogger.isDebugEnabled() ? Level.DEBUG :
    slf4jLogger.isInfoEnabled() ? Level.INFO :
    slf4jLogger.isWarnEnabled() ? Level.WARN : Level.ERROR;
}

Without this method, I have to maintain my own version of the bridge so
a piece of software I am required to use will work with the bridge.

Please reconsider adding it to the Category class.

Thanks,
Michael

> -----Original Message-----
> From: dev-bounces at slf4j.org [mailto:dev-bounces at slf4j.org] On 
> Behalf Of bugzilla-daemon at pixie.qos.ch
> Sent: Wednesday, February 27, 2008 9:09 AM
> To: dev at slf4j.org
> Subject: [slf4j-dev] [Bug 74] add getLevel() to Category in 
> log4j-over-slf4j
> 
> http://bugzilla.slf4j.org/show_bug.cgi?id=74
> 
> 
> michael.newcomb at gdc4s.com changed:
> 
>            What    |Removed                     |Added
> --------------------------------------------------------------
> --------------
>              Status|RESOLVED                    |REOPENED
>          Resolution|WONTFIX                     |
> 
> 
> 
> 
> ------- Comment #3 from michael.newcomb at gdc4s.com  2008-02-27 
> 15:08 -------
> 
> Currently I have to modify the log4j-over-slf4j bridge just to do the
> following:
> 
> public Level getLevel()
> {
>   return slf4jLogger.isTraceEnabled() ? Level.TRACE :
>     slf4jLogger.isDebugEnabled() ? Level.DEBUG :
>     slf4jLogger.isInfoEnabled() ? Level.INFO :
>     slf4jLogger.isWarnEnabled() ? Level.WARN : Level.ERROR; }
> 
> Can you please, please, pretty please ;) add this to the 
> Category class?
> 
> 
> --
> Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: ------- You are 
> the assignee for the bug, or are watching the assignee.
> _______________________________________________
> dev mailing list
> dev at slf4j.org
> http://www.slf4j.org/mailman/listinfo/dev
> 



More information about the slf4j-dev mailing list