Package org.pentaho.di.core.logging
Enum LogLevel
- java.lang.Object
-
- java.lang.Enum<LogLevel>
-
- org.pentaho.di.core.logging.LogLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<LogLevel>
public enum LogLevel extends Enum<LogLevel>
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
logLevelDescriptions
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
String
getDescription()
int
getLevel()
static String[]
getLogLevelDescriptions()
static LogLevel
getLogLevelForCode(String code)
Return the log level for a certain log level codeboolean
isBasic()
boolean
isDebug()
boolean
isDetailed()
boolean
isError()
boolean
isMinimal()
boolean
isNothing()
boolean
isRowlevel()
boolean
isVisible(LogLevel filterLogLevel)
static String[]
logLogLevelCodes()
static LogLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static LogLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOTHING
public static final LogLevel NOTHING
-
ERROR
public static final LogLevel ERROR
-
MINIMAL
public static final LogLevel MINIMAL
-
BASIC
public static final LogLevel BASIC
-
DETAILED
public static final LogLevel DETAILED
-
DEBUG
public static final LogLevel DEBUG
-
ROWLEVEL
public static final LogLevel ROWLEVEL
-
-
Field Detail
-
logLevelDescriptions
public static final String[] logLevelDescriptions
-
-
Method Detail
-
values
public static LogLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LogLevel c : LogLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLevel
public int getLevel()
-
getCode
public String getCode()
-
getDescription
public String getDescription()
-
getLogLevelForCode
public static LogLevel getLogLevelForCode(String code)
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
public boolean isVisible(LogLevel filterLogLevel)
- 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
public static String[] getLogLevelDescriptions()
- Returns:
- An array of log level descriptions, sorted by level (0==Nothing, 6=Row Level)
-
logLogLevelCodes
public static String[] logLogLevelCodes()
- Returns:
- An array of log level codes, sorted by level (0==Nothing, 6=Row Level)
-
-