Enum Class LogLevel

java.lang.Object
java.lang.Enum<LogLevel>
org.pentaho.di.core.logging.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>, Constable

public enum LogLevel extends Enum<LogLevel>
  • Enum Constant Details

    • 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 Details

    • logLevelDescriptions

      public static final String[] logLevelDescriptions
  • Method Details

    • values

      public static LogLevel[] 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

      public static LogLevel valueOf(String name)
      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 name
      NullPointerException - 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)