com.supermap.services.util.log

Class Level

  • java.lang.Object
    • com.supermap.services.util.log.Level
  • All Implemented Interfaces:
    java.io.Serializable


    public final class Level
    extends java.lang.Object
    implements java.io.Serializable
    

    Log level enumeration type.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static Level ALL
      All levels, used to record all the information that can be recorded in the system.
      static Level DEBUG
      Debug level, can be used to track the relevant information of the programme implementation.
      static Level ERROR
      Error level, the error message is used to describe some of the errors that occurred during the execution of the program.
      static Level FATAL
      Severity level, the error message is used to inform the program execution of some serious errors in the situation, which may cause the system can not continue to run.
      static Level INFO
      The information level, the general information for the implementation of the execution of the program.
      static Level OFF
      Close all log level information, not recording any information.
      static Level WARN
      Warning level, warning information is used to prompt some error settings or exceptions during the execution of the program.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Level() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static Level get(java.lang.String name)
      Get the level by name
      java.lang.String getName()
      Get the log name.
      int getPriority()
      Get the log information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OFF

        public static final Level OFF
        

        Close all log level information, not recording any information.

      • DEBUG

        public static final Level DEBUG
        

        Debug level, can be used to track the relevant information of the programme implementation.

      • INFO

        public static final Level INFO
        

        The information level, the general information for the implementation of the execution of the program.

      • WARN

        public static final Level WARN
        

        Warning level, warning information is used to prompt some error settings or exceptions during the execution of the program.

      • ERROR

        public static final Level ERROR
        

        Error level, the error message is used to describe some of the errors that occurred during the execution of the program.

      • FATAL

        public static final Level FATAL
        

        Severity level, the error message is used to inform the program execution of some serious errors in the situation, which may cause the system can not continue to run.

      • ALL

        public static final Level ALL
        

        All levels, used to record all the information that can be recorded in the system.

    • Constructor Detail

      • Level

        public Level()
        
    • Method Detail

      • getPriority

        public int getPriority()
        

        Get the log information.

        Returns:
        the log information.
      • getName

        public java.lang.String getName()
        

        Get the log name.

        Returns:
        the log name.
      • get

        public static Level get(java.lang.String name)
        
        Get the level by name
        Parameters:
        name - specific name.
        Returns:
        the log level