Enum VerboseLevel

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

    public enum VerboseLevel
    extends java.lang.Enum<VerboseLevel>
    This enum defines the various possible verbosity levels for server messages. Theses values can be used in the code (with the Logger.log(String, VerboseLevel) method in particular) of in the configuration file. Note that the order of the enum constant is important since for a given level of verbosity, all messages with a superior level of verbosity will be displayed as well.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DEBUG
      Not very important debug info.
      DEBUG_CONCURRENCY
      Very verbose debug information, used to track concurrency errors.
      EMPHASIZE
      Emphasized standard information
      ERROR
      "Normal" error, that will be reported to the clients
      FATAL_ERROR
      Error that trigger the direct interuption of the application
      IMPORTANT
      Important information that should be emphasized in a log
      INFO
      Standard information
      SERIOUS_ERROR
      Error that "shouldn't happen" but the server can live with.
      SILENT
      Only for use in the config file.
      VERBOSE
      Important debug info
      WARNING
      Not an error, but an important information that can alter the way the server works.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static VerboseLevel valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static VerboseLevel[] 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

      • SILENT

        public static final VerboseLevel SILENT
        Only for use in the config file. Indicates that nothing must be displayed.
      • FATAL_ERROR

        public static final VerboseLevel FATAL_ERROR
        Error that trigger the direct interuption of the application
      • SERIOUS_ERROR

        public static final VerboseLevel SERIOUS_ERROR
        Error that "shouldn't happen" but the server can live with.
      • ERROR

        public static final VerboseLevel ERROR
        "Normal" error, that will be reported to the clients
      • WARNING

        public static final VerboseLevel WARNING
        Not an error, but an important information that can alter the way the server works.
      • IMPORTANT

        public static final VerboseLevel IMPORTANT
        Important information that should be emphasized in a log
      • EMPHASIZE

        public static final VerboseLevel EMPHASIZE
        Emphasized standard information
      • INFO

        public static final VerboseLevel INFO
        Standard information
      • VERBOSE

        public static final VerboseLevel VERBOSE
        Important debug info
      • DEBUG

        public static final VerboseLevel DEBUG
        Not very important debug info.
      • DEBUG_CONCURRENCY

        public static final VerboseLevel DEBUG_CONCURRENCY
        Very verbose debug information, used to track concurrency errors.
    • Method Detail

      • values

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

        public static VerboseLevel 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