Enum LogLevel

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

    public enum LogLevel
    extends java.lang.Enum<LogLevel>
    Log Levels.
    Since:
    1.4
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUDIT
      Audit – Information that must always be logged.
      DEBUG
      Debug – Detailed output for debugging operations.
      ERROR
      Error – Information about an error situation.
      INFO
      Info – Information about normal operation.
      TRACE
      Trace level – Large volume of output for tracing operations.
      WARN
      Warning – Information about a failure or unwanted situation that is not blocking.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean implies​(LogLevel other)
      Returns whether this log level implies the specified log level.
      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

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

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

      • AUDIT

        public static final LogLevel AUDIT
        Audit – Information that must always be logged.
      • ERROR

        public static final LogLevel ERROR
        Error – Information about an error situation.
      • WARN

        public static final LogLevel WARN
        Warning – Information about a failure or unwanted situation that is not blocking.
      • INFO

        public static final LogLevel INFO
        Info – Information about normal operation.
      • DEBUG

        public static final LogLevel DEBUG
        Debug – Detailed output for debugging operations.
      • TRACE

        public static final LogLevel TRACE
        Trace level – Large volume of output for tracing operations.
    • 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
      • implies

        public boolean implies​(LogLevel other)
        Returns whether this log level implies the specified log level.
        Parameters:
        other - The other log level.
        Returns:
        true If this log level implies the specified log level; false otherwise.