Enum Logger.Level

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Logger.Level>
    Enclosing interface:
    Logger

    public static enum Logger.Level
    extends java.lang.Enum<Logger.Level>
    Levels of log, in increasing order of severity
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DEBUG
      A very low and rarely useful form of Logging.
      ERROR
      An error is an indication that DiSCo has detected a serious problem, and was unable to proceed as requested.
      FATAL
      A fatal error is the most serious kind of log.
      INFO
      By default the minimum visible level of Logging.
      TRACE
      The lowest and least useful form of Logging in most circumstances.
      WARN
      A warning is generally informative, but may be a canary for missing functionality.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Logger.Level valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Logger.Level[] 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, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • TRACE

        public static final Logger.Level TRACE
        The lowest and least useful form of Logging in most circumstances. Can tend to be extremely verbose, and is unlikely to be useful except for DiSCo developers, or under rare debugging scenarios. Enabled by the DiSCo 'extraverbose' command line argument.
      • DEBUG

        public static final Logger.Level DEBUG
        A very low and rarely useful form of Logging. Can tend to be somewhat verbose, and is unlikely to be useful except for DiSCo developers, or under rare debugging scenarios. Enabled by the DiSCo 'verbose' command line argument.
      • INFO

        public static final Logger.Level INFO
        By default the minimum visible level of Logging. Info logs are notifications of major, normal, events during the software lifetime.
      • WARN

        public static final Logger.Level WARN
        A warning is generally informative, but may be a canary for missing functionality. When only warnings are present the software is expected to proceed without harm, but may be degraded.
      • ERROR

        public static final Logger.Level ERROR
        An error is an indication that DiSCo has detected a serious problem, and was unable to proceed as requested. There is a possibility or likelihood that the service-under-test will encounter its own problems or failures
      • FATAL

        public static final Logger.Level FATAL
        A fatal error is the most serious kind of log. It indicates that the service-under-test is unlikely to be able to continue operating normally.
    • Method Detail

      • values

        public static Logger.Level[] 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 (Logger.Level c : Logger.Level.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Logger.Level 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