Enum LogLevel

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LogLevel>

    public enum LogLevel
    extends java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      CONFIG
      Used for messages about StreamLink's configuration.
      CRITICAL
      Used for messages indicating a serious failure.
      ERROR
      Used for messages which indicate a problem.
      FINE
      Used for tracing messages.
      FINER
      Used for fairly detailed tracing messages.
      FINEST
      Used for the most finely detailed tracing messages.
      INFO
      Used for information messages.
      NOTIFY
      Used for messages of more importance than INFO but may not indicate problems.
      WARN
      Used for messages which indicate a potential problem.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPaddedName()  
      int getValue()  
      java.lang.String toString()  
      static LogLevel valueOf​(java.lang.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()
      • getPaddedName

        public java.lang.String getPaddedName()
      • toString

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