public interface PaxLevel
Framework library agnostic representation of logging level. There are two uses of level concept:
Terms like higher or lower may be confusing at first glance. Each framework may use different
numerical levels than other. Syslog and LogService use higher numerical values for less
important logging events. Log4J1 and java.util.logging use higher numerical values for more important events.
This interface is based on Log4J1 and:
INFO is higher than DEBUG| Modifier and Type | Method and Description |
|---|---|
int |
getSyslogEquivalent()
Return the syslog equivalent of this priority as an integer.
|
boolean |
isGreaterOrEqual(PaxLevel r)
Returns
true if this level has a higher or equal level (is more important,
has bigger severity) than the level passed as argument, false otherwise. |
int |
toInt()
Returns the integer representation of this level.
|
boolean isGreaterOrEqual(PaxLevel r)
Returns true if this level has a higher or equal level (is more important,
has bigger severity) than the level passed as argument, false otherwise.
r - the PaxLevel to compare with.false otherwise.int toInt()
PaxLogger (e.g., PaxLogger.LEVEL_INFO) are
returnedint getSyslogEquivalent()
Copyright © 2006–2020 OPS4J - Open Participation Software for Java. All rights reserved.