Enum Severity

java.lang.Object
java.lang.Enum<Severity>
com.google.cloud.logging.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>

public enum Severity extends Enum<Severity>
The severity of the event described in a log entry. These guideline severity levels are ordered, with numerically smaller levels treated as less severe than numerically larger levels. If the source of the log entries uses a different set of severity levels, the client should select the closest corresponding Severity value.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A person must take an action immediately.
    Critical events cause more severe problems or brief outages.
    Debug or trace information.
    The log entry has no assigned severity level.
    One or more systems are unusable.
    Error events are likely to cause problems.
    Routine information, such as ongoing status or performance.
    The None severity level.
    Normal but significant events, such as start up, shut down, or configuration.
    Warning events might cause problems.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Severity
    Returns the enum constant of this type with the specified name.
    static Severity[]
    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 Details

    • NONE

      public static final Severity NONE
      The None severity level. Should not be used with log entries.
    • DEFAULT

      public static final Severity DEFAULT
      The log entry has no assigned severity level.
    • DEBUG

      public static final Severity DEBUG
      Debug or trace information.
    • INFO

      public static final Severity INFO
      Routine information, such as ongoing status or performance.
    • NOTICE

      public static final Severity NOTICE
      Normal but significant events, such as start up, shut down, or configuration.
    • WARNING

      public static final Severity WARNING
      Warning events might cause problems.
    • ERROR

      public static final Severity ERROR
      Error events are likely to cause problems.
    • CRITICAL

      public static final Severity CRITICAL
      Critical events cause more severe problems or brief outages.
    • ALERT

      public static final Severity ALERT
      A person must take an action immediately.
    • EMERGENCY

      public static final Severity EMERGENCY
      One or more systems are unusable.
  • Method Details

    • values

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

      public static Severity valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null