Package com.google.logging.type
Enum LogSeverity
- java.lang.Object
-
- java.lang.Enum<LogSeverity>
-
- com.google.logging.type.LogSeverity
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,java.io.Serializable
,java.lang.Comparable<LogSeverity>
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 enumgoogle.logging.type.LogSeverity
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(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
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.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final LogSeverity DEFAULT
(0) The log entry has no assigned severity level.
DEFAULT = 0;
-
DEBUG
public static final LogSeverity DEBUG
(100) Debug or trace information.
DEBUG = 100;
-
INFO
public static final LogSeverity INFO
(200) Routine information, such as ongoing status or performance.
INFO = 200;
-
NOTICE
public static final LogSeverity NOTICE
(300) Normal but significant events, such as start up, shut down, or a configuration change.
NOTICE = 300;
-
WARNING
public static final LogSeverity WARNING
(400) Warning events might cause problems.
WARNING = 400;
-
ERROR
public static final LogSeverity ERROR
(500) Error events are likely to cause problems.
ERROR = 500;
-
CRITICAL
public static final LogSeverity CRITICAL
(600) Critical events cause more severe problems or outages.
CRITICAL = 600;
-
ALERT
public static final LogSeverity ALERT
(700) A person must take an action immediately.
ALERT = 700;
-
EMERGENCY
public static final LogSeverity EMERGENCY
(800) One or more systems are unusable.
EMERGENCY = 800;
-
UNRECOGNIZED
public static final LogSeverity UNRECOGNIZED
-
-
Field Detail
-
DEFAULT_VALUE
public static final int DEFAULT_VALUE
(0) The log entry has no assigned severity level.
DEFAULT = 0;
- See Also:
- Constant Field Values
-
DEBUG_VALUE
public static final int DEBUG_VALUE
(100) Debug or trace information.
DEBUG = 100;
- See Also:
- Constant Field Values
-
INFO_VALUE
public static final int INFO_VALUE
(200) Routine information, such as ongoing status or performance.
INFO = 200;
- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
WARNING_VALUE
public static final int WARNING_VALUE
(400) Warning events might cause problems.
WARNING = 400;
- See Also:
- Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
(500) Error events are likely to cause problems.
ERROR = 500;
- See Also:
- Constant Field Values
-
CRITICAL_VALUE
public static final int CRITICAL_VALUE
(600) Critical events cause more severe problems or outages.
CRITICAL = 600;
- See Also:
- Constant Field Values
-
ALERT_VALUE
public static final int ALERT_VALUE
(700) A person must take an action immediately.
ALERT = 700;
- See Also:
- Constant Field Values
-
EMERGENCY_VALUE
public static final int EMERGENCY_VALUE
(800) One or more systems are unusable.
EMERGENCY = 800;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static LogSeverity[] 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 (LogSeverity c : LogSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogSeverity valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 public static LogSeverity valueOf(int value)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forNumber
public static LogSeverity forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<LogSeverity> 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
public static LogSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-