Package org.apache.log4j.lf5
Class LogLevel
java.lang.Object
org.apache.log4j.lf5.LogLevel
- All Implemented Interfaces:
Serializable
The LogLevel class defines a set of standard logging levels.
The logging Level objects are ordered and are specified by ordered
integers. Enabling logging at a given level also enables logging at all
higher levels.
- Author:
- Michael J. Sikorsky, Robert Shaw, Brent Sprecher, Richard Hurst, Brad Marlborough
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected intstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevelstatic final LogLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanencompasses(LogLevel level) Returns true if the level supplied is encompassed by this level.booleanstatic Liststatic ListgetLabel()Return the Label of the LogLevel.static Liststatic Mapprotected intinthashCode()static voidstatic LogLevelRegisters a used defined LogLevel.static voidstatic voidvoidsetLogLevelColorMap(LogLevel level, Color color) toString()static LogLevelConvert a log level label into a LogLevel object.
-
Field Details
-
FATAL
-
ERROR
-
WARN
-
INFO
-
DEBUG
-
SEVERE
-
WARNING
-
CONFIG
-
FINE
-
FINER
-
FINEST
-
_label
-
_precedence
protected int _precedence
-
-
Constructor Details
-
LogLevel
-
-
Method Details
-
getLabel
Return the Label of the LogLevel. -
encompasses
Returns true if the level supplied is encompassed by this level. For example, LogLevel.SEVERE encompasses no other LogLevels and LogLevel.FINE encompasses all other LogLevels. By definition, a LogLevel encompasses itself. -
valueOf
Convert a log level label into a LogLevel object.- Parameters:
level- The label of a level to be converted into a LogLevel.- Returns:
- LogLevel The LogLevel with a label equal to level.
- Throws:
LogLevelFormatException- Is thrown when the level can not be converted into a LogLevel.
-
register
Registers a used defined LogLevel.- Parameters:
logLevel- The log level to be registered. Cannot be a default LogLevel- Returns:
- LogLevel The replaced log level.
-
register
-
register
-
equals
-
hashCode
public int hashCode() -
toString
-
setLogLevelColorMap
-
resetLogLevelColorMap
public static void resetLogLevelColorMap() -
getLog4JLevels
- Returns:
- A
ListofLogLevelobjects that map to log4jPriorityobjects.
-
getJdk14Levels
-
getAllDefaultLevels
-
getLogLevelColorMap
-
getPrecedence
protected int getPrecedence()
-