Package com.google.logging.type
Enum LogSeverity
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<LogSeverity>
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
-
Enum Constant Summary
Enum ConstantDescription(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
Modifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionstatic LogSeverity
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>
static LogSeverity
valueOf
(int value) Deprecated.static LogSeverity
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static LogSeverity
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.
-
Enum Constant Details
-
DEFAULT
(0) The log entry has no assigned severity level.
DEFAULT = 0;
-
DEBUG
(100) Debug or trace information.
DEBUG = 100;
-
INFO
(200) Routine information, such as ongoing status or performance.
INFO = 200;
-
NOTICE
(300) Normal but significant events, such as start up, shut down, or a configuration change.
NOTICE = 300;
-
WARNING
(400) Warning events might cause problems.
WARNING = 400;
-
ERROR
(500) Error events are likely to cause problems.
ERROR = 500;
-
CRITICAL
(600) Critical events cause more severe problems or outages.
CRITICAL = 600;
-
ALERT
(700) A person must take an action immediately.
ALERT = 700;
-
EMERGENCY
(800) One or more systems are unusable.
EMERGENCY = 800;
-
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
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
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value
- 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
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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:
desc
- 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
-