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 SummaryFields Modifier and Type Field Description static String[]logLevelDescriptions
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()StringgetDescription()intgetLevel()static String[]getLogLevelDescriptions()static LogLevelgetLogLevelForCode(String code)Return the log level for a certain log level codebooleanisBasic()booleanisDebug()booleanisDetailed()booleanisError()booleanisMinimal()booleanisNothing()booleanisRowlevel()booleanisVisible(LogLevel filterLogLevel)static String[]logLogLevelCodes()static LogLevelvalueOf(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- 
NOTHINGpublic static final LogLevel NOTHING 
 - 
ERRORpublic static final LogLevel ERROR 
 - 
MINIMALpublic static final LogLevel MINIMAL 
 - 
BASICpublic static final LogLevel BASIC 
 - 
DETAILEDpublic static final LogLevel DETAILED 
 - 
DEBUGpublic static final LogLevel DEBUG 
 - 
ROWLEVELpublic static final LogLevel ROWLEVEL 
 
- 
 - 
Field Detail- 
logLevelDescriptionspublic static final String[] logLevelDescriptions 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 - 
getLevelpublic int getLevel() 
 - 
getCodepublic String getCode() 
 - 
getDescriptionpublic String getDescription() 
 - 
getLogLevelForCodepublic 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.
 
 - 
isVisiblepublic 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
 
 - 
isErrorpublic boolean isError() - Returns:
- true if this level is Error or lower
 
 - 
isNothingpublic boolean isNothing() - Returns:
- True if this level is Minimal or lower (which is nothing)
 
 - 
isMinimalpublic boolean isMinimal() - Returns:
- True if this level is Minimal
 
 - 
isBasicpublic boolean isBasic() - Returns:
- True if this level is Basic
 
 - 
isDetailedpublic boolean isDetailed() - Returns:
- True if this level is Detailed
 
 - 
isDebugpublic boolean isDebug() - Returns:
- True if this level is Debug
 
 - 
isRowlevelpublic boolean isRowlevel() - Returns:
- True if this level is Row level
 
 - 
getLogLevelDescriptionspublic static String[] getLogLevelDescriptions() - Returns:
- An array of log level descriptions, sorted by level (0==Nothing, 6=Row Level)
 
 - 
logLogLevelCodespublic static String[] logLogLevelCodes() - Returns:
- An array of log level codes, sorted by level (0==Nothing, 6=Row Level)
 
 
- 
 
-