public enum LogSeverity extends java.lang.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
Enum Constant and Description |
---|
ALERT
(700) A person must take an action immediately.
|
CRITICAL
(600) Critical events cause more severe problems or outages.
|
DEBUG
(100) Debug or trace information.
|
DEFAULT
(0) The log entry has no assigned severity level.
|
EMERGENCY
(800) One or more systems are unusable.
|
ERROR
(500) Error events are likely to cause problems.
|
INFO
(200) Routine information, such as ongoing status or performance.
|
NOTICE
(300) Normal but significant events, such as start up, shut down, or
a configuration change.
|
UNRECOGNIZED |
WARNING
(400) Warning events might cause problems.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALERT_VALUE
(700) A person must take an action immediately.
|
static int |
CRITICAL_VALUE
(600) Critical events cause more severe problems or outages.
|
static int |
DEBUG_VALUE
(100) Debug or trace information.
|
static int |
DEFAULT_VALUE
(0) The log entry has no assigned severity level.
|
static int |
EMERGENCY_VALUE
(800) One or more systems are unusable.
|
static int |
ERROR_VALUE
(500) Error events are likely to cause problems.
|
static int |
INFO_VALUE
(200) Routine information, such as ongoing status or performance.
|
static int |
NOTICE_VALUE
(300) Normal but significant events, such as start up, shut down, or
a configuration change.
|
static int |
WARNING_VALUE
(400) 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
(0) The log entry has no assigned severity level.
DEFAULT = 0;
public static final LogSeverity DEBUG
(100) Debug or trace information.
DEBUG = 100;
public static final LogSeverity INFO
(200) Routine information, such as ongoing status or performance.
INFO = 200;
public static final LogSeverity NOTICE
(300) Normal but significant events, such as start up, shut down, or a configuration change.
NOTICE = 300;
public static final LogSeverity WARNING
(400) Warning events might cause problems.
WARNING = 400;
public static final LogSeverity ERROR
(500) Error events are likely to cause problems.
ERROR = 500;
public static final LogSeverity CRITICAL
(600) Critical events cause more severe problems or outages.
CRITICAL = 600;
public static final LogSeverity ALERT
(700) A person must take an action immediately.
ALERT = 700;
public static final LogSeverity EMERGENCY
(800) One or more systems are unusable.
EMERGENCY = 800;
public static final LogSeverity UNRECOGNIZED
public static final int DEFAULT_VALUE
(0) The log entry has no assigned severity level.
DEFAULT = 0;
public static final int DEBUG_VALUE
(100) Debug or trace information.
DEBUG = 100;
public static final int INFO_VALUE
(200) Routine information, such as ongoing status or performance.
INFO = 200;
public static final int NOTICE_VALUE
(300) Normal but significant events, such as start up, shut down, or a configuration change.
NOTICE = 300;
public static final int WARNING_VALUE
(400) Warning events might cause problems.
WARNING = 400;
public static final int ERROR_VALUE
(500) Error events are likely to cause problems.
ERROR = 500;
public static final int CRITICAL_VALUE
(600) Critical events cause more severe problems or outages.
CRITICAL = 600;
public static final int ALERT_VALUE
(700) A person must take an action immediately.
ALERT = 700;
public static final int EMERGENCY_VALUE
(800) 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.EnumLite
getNumber
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.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LogSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)