[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 May 27 21:29:56 CEST 2008


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





------- Comment #7 from listid at qos.ch  2008-05-27 21:29 -------
Hello Michael,

It is true that the getLevel method is still not implemented. As you state, it
follows that log4j-over-slf4j cannot be a drop-in replacement if the client
code calls getLevel().

The getLevel method in the original log4j code returns the assigned level of
logger. In most cases, this value is null. On the other hand, the
getEffectiveLevel method performs a hierarchy walk to determine the assigned
level of the closest ancestor.

It may be that in your case getLevel and getAssignedLevel method have the same
meaning. However, in general this is not true. 

Would it be possible for you to invoke getAssignedLevel instead of getLevel in
your code? I mean is that an option?


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