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 String
protected int
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
static final LogLevel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
encompasses
(LogLevel level) Returns true if the level supplied is encompassed by this level.boolean
static List
static List
getLabel()
Return the Label of the LogLevel.static List
static Map
protected int
int
hashCode()
static void
static LogLevel
Registers a used defined LogLevel.static void
static void
void
setLogLevelColorMap
(LogLevel level, Color color) toString()
static LogLevel
Convert 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
List
ofLogLevel
objects that map to log4jPriority
objects.
-
getJdk14Levels
-
getAllDefaultLevels
-
getLogLevelColorMap
-
getPrecedence
protected int getPrecedence()
-