Enum Class LogSeverity

java.lang.Object
java.lang.Enum<LogSeverity>
com.google.logging.type.LogSeverity
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<LogSeverity>, Constable

public enum LogSeverity extends Enum<LogSeverity> implements com.google.protobuf.ProtocolMessageEnum
 The severity of the event described in a log entry, expressed as one of the
 standard severity levels listed below.  For your reference, the levels are
 assigned the listed numeric values. The effect of using numeric values other
 than those listed is undefined.
 You can filter for log entries by severity.  For example, the following
 filter expression will match log entries with severities `INFO`, `NOTICE`,
 and `WARNING`:
     severity > DEBUG AND severity <= WARNING
 If you are writing log entries, you should map other severity encodings to
 one of these standard levels. For example, you might map all of Java's FINE,
 FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
 original severity level in the log entry payload if you wish.
 
Protobuf enum google.logging.type.LogSeverity
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    (700) A person must take an action immediately.
    (600) Critical events cause more severe problems or outages.
    (100) Debug or trace information.
    (0) The log entry has no assigned severity level.
    (800) One or more systems are unusable.
    (500) Error events are likely to cause problems.
    (200) Routine information, such as ongoing status or performance.
    (300) Normal but significant events, such as start up, shut down, or a configuration change.
     
    (400) Warning events might cause problems.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    (700) A person must take an action immediately.
    static final int
    (600) Critical events cause more severe problems or outages.
    static final int
    (100) Debug or trace information.
    static final int
    (0) The log entry has no assigned severity level.
    static final int
    (800) One or more systems are unusable.
    static final int
    (500) Error events are likely to cause problems.
    static final int
    (200) Routine information, such as ongoing status or performance.
    static final int
    (300) Normal but significant events, such as start up, shut down, or a configuration change.
    static final int
    (400) Warning events might cause problems.
  • Method Summary

    Modifier and Type
    Method
    Description
    forNumber(int value)
     
    static final com.google.protobuf.Descriptors.EnumDescriptor
     
    final com.google.protobuf.Descriptors.EnumDescriptor
     
    final int
     
    final com.google.protobuf.Descriptors.EnumValueDescriptor
     
    static com.google.protobuf.Internal.EnumLiteMap<LogSeverity>
     
    valueOf(int value)
    Deprecated.
    valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
    Returns the enum constant of this class with the specified name.
    Returns the enum constant of this class with the specified name.
    static LogSeverity[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

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

    • DEFAULT

      public static final LogSeverity DEFAULT
       (0) The log entry has no assigned severity level.
       
      DEFAULT = 0;
    • DEBUG

      public static final LogSeverity DEBUG
       (100) Debug or trace information.
       
      DEBUG = 100;
    • INFO

      public static final LogSeverity INFO
       (200) Routine information, such as ongoing status or performance.
       
      INFO = 200;
    • NOTICE

      public static final LogSeverity NOTICE
       (300) Normal but significant events, such as start up, shut down, or
       a configuration change.
       
      NOTICE = 300;
    • WARNING

      public static final LogSeverity WARNING
       (400) Warning events might cause problems.
       
      WARNING = 400;
    • ERROR

      public static final LogSeverity ERROR
       (500) Error events are likely to cause problems.
       
      ERROR = 500;
    • CRITICAL

      public static final LogSeverity CRITICAL
       (600) Critical events cause more severe problems or outages.
       
      CRITICAL = 600;
    • ALERT

      public static final LogSeverity ALERT
       (700) A person must take an action immediately.
       
      ALERT = 700;
    • EMERGENCY

      public static final LogSeverity EMERGENCY
       (800) One or more systems are unusable.
       
      EMERGENCY = 800;
    • UNRECOGNIZED

      public static final LogSeverity UNRECOGNIZED
  • Field Details

    • DEFAULT_VALUE

      public static final int DEFAULT_VALUE
       (0) The log entry has no assigned severity level.
       
      DEFAULT = 0;
      See Also:
    • DEBUG_VALUE

      public static final int DEBUG_VALUE
       (100) Debug or trace information.
       
      DEBUG = 100;
      See Also:
    • INFO_VALUE

      public static final int INFO_VALUE
       (200) Routine information, such as ongoing status or performance.
       
      INFO = 200;
      See Also:
    • NOTICE_VALUE

      public static final int NOTICE_VALUE
       (300) Normal but significant events, such as start up, shut down, or
       a configuration change.
       
      NOTICE = 300;
      See Also:
    • WARNING_VALUE

      public static final int WARNING_VALUE
       (400) Warning events might cause problems.
       
      WARNING = 400;
      See Also:
    • ERROR_VALUE

      public static final int ERROR_VALUE
       (500) Error events are likely to cause problems.
       
      ERROR = 500;
      See Also:
    • CRITICAL_VALUE

      public static final int CRITICAL_VALUE
       (600) Critical events cause more severe problems or outages.
       
      CRITICAL = 600;
      See Also:
    • ALERT_VALUE

      public static final int ALERT_VALUE
       (700) A person must take an action immediately.
       
      ALERT = 700;
      See Also:
    • EMERGENCY_VALUE

      public static final int EMERGENCY_VALUE
       (800) One or more systems are unusable.
       
      EMERGENCY = 800;
      See Also:
  • Method Details

    • values

      public static LogSeverity[] 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 LogSeverity 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()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static LogSeverity 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 LogSeverity 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<LogSeverity> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static LogSeverity valueOf(com.google.protobuf.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