Enum Class LogLevel

java.lang.Object
java.lang.Enum<LogLevel>
com.caplin.streamlink.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>, Constable

public enum LogLevel extends Enum<LogLevel>

Enumeration that represents the available logging levels.

Each log message generated by StreamLink has an associated LogLevel that indicates its importance, in the following order (highest to lowest).

Config (highest importance)
Critical
Error
Warning
Notify
Info
Fine
Finer
Finest (lowest importance)
  • Enum Constant Details

    • CONFIG

      public static final LogLevel CONFIG

      Used for messages about StreamLink's configuration.

    • CRITICAL

      public static final LogLevel CRITICAL

      Used for messages indicating a serious failure.

    • ERROR

      public static final LogLevel ERROR

      Used for messages which indicate a problem.

    • WARN

      public static final LogLevel WARN

      Used for messages which indicate a potential problem.

    • NOTIFY

      public static final LogLevel NOTIFY

      Used for messages of more importance than INFO but may not indicate problems.

    • INFO

      public static final LogLevel INFO

      Used for information messages.

    • FINE

      public static final LogLevel FINE

      Used for tracing messages.

    • FINER

      public static final LogLevel FINER

      Used for fairly detailed tracing messages.

    • FINEST

      public static final LogLevel FINEST

      Used for the most finely detailed tracing messages.

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

      public int getValue()
    • getPaddedName

      public String getPaddedName()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LogLevel>