public enum LogSeverity extends java.lang.Enum<LogSeverity> implements com.google.protobuf.ProtocolMessageEnum
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 `LogSeverity` value. For example, Java's FINE, FINER, and FINEST levels might all map to `LogSeverity.DEBUG`. If the original severity code must be preserved, it can be stored in the payload.Protobuf enum
google.logging.type.LogSeverity| Enum Constant and 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.
|
NOTICE
Normal but significant events, such as start up, shut down, or
configuration.
|
UNRECOGNIZED |
WARNING
Warning events might cause problems.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ALERT_VALUE
A person must take an action immediately.
|
static int |
CRITICAL_VALUE
Critical events cause more severe problems or brief outages.
|
static int |
DEBUG_VALUE
Debug or trace information.
|
static int |
DEFAULT_VALUE
The log entry has no assigned severity level.
|
static int |
EMERGENCY_VALUE
One or more systems are unusable.
|
static int |
ERROR_VALUE
Error events are likely to cause problems.
|
static int |
INFO_VALUE
Routine information, such as ongoing status or performance.
|
static int |
NOTICE_VALUE
Normal but significant events, such as start up, shut down, or
configuration.
|
static int |
WARNING_VALUE
Warning events might cause problems.
|
| Modifier and Type | Method and Description |
|---|---|
static LogSeverity |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<LogSeverity> |
internalGetValueMap() |
static LogSeverity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LogSeverity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LogSeverity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogSeverity DEFAULT
The log entry has no assigned severity level.
DEFAULT = 0;public static final LogSeverity DEBUG
Debug or trace information.
DEBUG = 100;public static final LogSeverity INFO
Routine information, such as ongoing status or performance.
INFO = 200;public static final LogSeverity NOTICE
Normal but significant events, such as start up, shut down, or configuration.
NOTICE = 300;public static final LogSeverity WARNING
Warning events might cause problems.
WARNING = 400;public static final LogSeverity ERROR
Error events are likely to cause problems.
ERROR = 500;public static final LogSeverity CRITICAL
Critical events cause more severe problems or brief outages.
CRITICAL = 600;public static final LogSeverity ALERT
A person must take an action immediately.
ALERT = 700;public static final LogSeverity EMERGENCY
One or more systems are unusable.
EMERGENCY = 800;public static final LogSeverity UNRECOGNIZED
public static final int DEFAULT_VALUE
The log entry has no assigned severity level.
DEFAULT = 0;public static final int DEBUG_VALUE
Debug or trace information.
DEBUG = 100;public static final int INFO_VALUE
Routine information, such as ongoing status or performance.
INFO = 200;public static final int NOTICE_VALUE
Normal but significant events, such as start up, shut down, or configuration.
NOTICE = 300;public static final int WARNING_VALUE
Warning events might cause problems.
WARNING = 400;public static final int ERROR_VALUE
Error events are likely to cause problems.
ERROR = 500;public static final int CRITICAL_VALUE
Critical events cause more severe problems or brief outages.
CRITICAL = 600;public static final int ALERT_VALUE
A person must take an action immediately.
ALERT = 700;public static final int EMERGENCY_VALUE
One or more systems are unusable.
EMERGENCY = 800;public static LogSeverity[] values()
for (LogSeverity c : LogSeverity.values()) System.out.println(c);
public static LogSeverity valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static LogSeverity valueOf(int value)
forNumber(int) instead.public static LogSeverity forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<LogSeverity> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LogSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)