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

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Feb 26 19:01:08 CET 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=74





------- Comment #2 from michael.newcomb at gdc4s.com  2008-02-26 19:01 -------
Level getLevel()
{
  return slf4jLogger.isTraceEnabled() ? Level.TRACE :
    slf4jLogger.isDebugEnabled() ? Level.DEBUG :
    slf4jLogger.isInfoEnabled() ? Level.INFO :
    slf4jLogger.isWarnEnabled() ? Level.WARN : Level.ERROR;
}

That's all it takes and it helps complete the wrapper.

Likewise, adding:

void setLevel(Level level) {}

wouldn't cause any harm either.


-- 
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.



More information about the slf4j-dev mailing list