Package com.google.cloud.logging
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 correspondingSeverity
value.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALERT
A person must take an action immediately.CRITICAL
Critical events cause more severe problems or brief outages.DEBUG
Debug or trace information.DEFAULT
The log entry has no assigned severity level.EMERGENCY
One or more systems are unusable.ERROR
Error events are likely to cause problems.INFO
Routine information, such as ongoing status or performance.NONE
The None severity level.NOTICE
Normal but significant events, such as start up, shut down, or configuration.WARNING
Warning events might cause problems.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Severity
valueOf(String name)
Returns the enum constant of this type with the specified name.static Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static Severity[] 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 (Severity c : Severity.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-