Enum Class Log.Severity

java.lang.Object
java.lang.Enum<Log.Severity>
dev.enola.core.util.proto.Log.Severity
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<Log.Severity>, Constable
Enclosing class:
Log

public static enum Log.Severity extends Enum<Log.Severity> implements ProtocolMessageEnum
 Inspired by
 https://cloud.google.com/service-infrastructure/docs/service-control/reference/rpc/google.logging.type,
 but could be extended here, as there is no real direct connection between
 this and GCP logging.
 
Protobuf enum dev.enola.core.util.Log.Severity
  • Enum Constant Details

    • SEVERITY_UNSPECIFIED

      public static final Log.Severity SEVERITY_UNSPECIFIED
       The log entry has no assigned severity level.
       
      SEVERITY_UNSPECIFIED = 0;
    • SEVERITY_DEBUG

      public static final Log.Severity SEVERITY_DEBUG
       Debug or trace information.
       
      SEVERITY_DEBUG = 100;
    • SEVERITY_INFO

      public static final Log.Severity SEVERITY_INFO
       Routine information, such as ongoing status or performance.
       
      SEVERITY_INFO = 200;
    • SEVERITY_NOTICE

      public static final Log.Severity SEVERITY_NOTICE
       Normal but significant events, such as start up, shut down, or a
       configuration change.
       
      SEVERITY_NOTICE = 300;
    • SEVERITY_WARNING

      public static final Log.Severity SEVERITY_WARNING
       Warning events might cause problems.
       
      SEVERITY_WARNING = 400;
    • SEVERITY_ERROR

      public static final Log.Severity SEVERITY_ERROR
       Error events are likely to cause problems.
       
      SEVERITY_ERROR = 500;
    • SEVERITY_CRITICAL

      public static final Log.Severity SEVERITY_CRITICAL
       Critical events cause more severe problems or outages.
       
      SEVERITY_CRITICAL = 600;
    • SEVERITY_ALERT

      public static final Log.Severity SEVERITY_ALERT
       A person must take an action immediately.
       
      SEVERITY_ALERT = 700;
    • SEVERITY_EMERGENCY

      public static final Log.Severity SEVERITY_EMERGENCY
       One or more systems are unusable.
       
      SEVERITY_EMERGENCY = 800;
    • UNRECOGNIZED

      public static final Log.Severity UNRECOGNIZED
  • Field Details

    • SEVERITY_UNSPECIFIED_VALUE

      public static final int SEVERITY_UNSPECIFIED_VALUE
       The log entry has no assigned severity level.
       
      SEVERITY_UNSPECIFIED = 0;
      See Also:
    • SEVERITY_DEBUG_VALUE

      public static final int SEVERITY_DEBUG_VALUE
       Debug or trace information.
       
      SEVERITY_DEBUG = 100;
      See Also:
    • SEVERITY_INFO_VALUE

      public static final int SEVERITY_INFO_VALUE
       Routine information, such as ongoing status or performance.
       
      SEVERITY_INFO = 200;
      See Also:
    • SEVERITY_NOTICE_VALUE

      public static final int SEVERITY_NOTICE_VALUE
       Normal but significant events, such as start up, shut down, or a
       configuration change.
       
      SEVERITY_NOTICE = 300;
      See Also:
    • SEVERITY_WARNING_VALUE

      public static final int SEVERITY_WARNING_VALUE
       Warning events might cause problems.
       
      SEVERITY_WARNING = 400;
      See Also:
    • SEVERITY_ERROR_VALUE

      public static final int SEVERITY_ERROR_VALUE
       Error events are likely to cause problems.
       
      SEVERITY_ERROR = 500;
      See Also:
    • SEVERITY_CRITICAL_VALUE

      public static final int SEVERITY_CRITICAL_VALUE
       Critical events cause more severe problems or outages.
       
      SEVERITY_CRITICAL = 600;
      See Also:
    • SEVERITY_ALERT_VALUE

      public static final int SEVERITY_ALERT_VALUE
       A person must take an action immediately.
       
      SEVERITY_ALERT = 700;
      See Also:
    • SEVERITY_EMERGENCY_VALUE

      public static final int SEVERITY_EMERGENCY_VALUE
       One or more systems are unusable.
       
      SEVERITY_EMERGENCY = 800;
      See Also:
  • Method Details

    • values

      public static Log.Severity[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Log.Severity valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Description copied from interface: ProtocolMessageEnum
      Return the value's numeric value as defined in the .proto file.
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface ProtocolMessageEnum
    • valueOf

      @Deprecated public static Log.Severity valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static Log.Severity forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Log.Severity> internalGetValueMap()
    • getValueDescriptor

      public final Descriptors.EnumValueDescriptor getValueDescriptor()
      Description copied from interface: ProtocolMessageEnum
      Return the value's descriptor, which contains information such as value name, number, and type.
      Specified by:
      getValueDescriptor in interface ProtocolMessageEnum
    • getDescriptorForType

      public final Descriptors.EnumDescriptor getDescriptorForType()
      Description copied from interface: ProtocolMessageEnum
      Return the enum type's descriptor, which contains information about each defined value, etc.
      Specified by:
      getDescriptorForType in interface ProtocolMessageEnum
    • getDescriptor

      public static final Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Log.Severity valueOf(Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null