Package org.pentaho.di.core.logging
Enum Class LogLevel
- All Implemented Interfaces:
Serializable
,Comparable<LogLevel>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
int
getLevel()
static String[]
static LogLevel
getLogLevelForCode
(String code) Return the log level for a certain log level codeboolean
isBasic()
boolean
isDebug()
boolean
boolean
isError()
boolean
boolean
boolean
boolean
static String[]
static LogLevel
Returns the enum constant of this class with the specified name.static LogLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTHING
-
ERROR
-
MINIMAL
-
BASIC
-
DETAILED
-
DEBUG
-
ROWLEVEL
-
-
Field Details
-
logLevelDescriptions
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getLevel
public int getLevel() -
getCode
-
getDescription
-
getLogLevelForCode
Return the log level for a certain log level code- Parameters:
code
- the code to look for- Returns:
- the log level or BASIC if nothing matches.
-
isVisible
- Parameters:
filterLogLevel
- the filter log level- Returns:
- true if the log level is visible compared to the filter log level specified
-
isError
public boolean isError()- Returns:
- true if this level is Error or lower
-
isNothing
public boolean isNothing()- Returns:
- True if this level is Minimal or lower (which is nothing)
-
isMinimal
public boolean isMinimal()- Returns:
- True if this level is Minimal
-
isBasic
public boolean isBasic()- Returns:
- True if this level is Basic
-
isDetailed
public boolean isDetailed()- Returns:
- True if this level is Detailed
-
isDebug
public boolean isDebug()- Returns:
- True if this level is Debug
-
isRowlevel
public boolean isRowlevel()- Returns:
- True if this level is Row level
-
getLogLevelDescriptions
- Returns:
- An array of log level descriptions, sorted by level (0==Nothing, 6=Row Level)
-
logLogLevelCodes
- Returns:
- An array of log level codes, sorted by level (0==Nothing, 6=Row Level)
-