Package dev.enola.core.util.proto
Enum Class Log.Severity
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Log.Severity>,Constable
- Enclosing class:
Log
public static enum Log.Severity
extends Enum<Log.Severity>
implements com.google.protobuf.ProtocolMessageEnum
Inspired by https://cloud.google.com/service-infrastructure/docs/service-control/reference/rpc/google.logging.type, but could be extended here, as there is no real direct connection between this and GCP logging.Protobuf enum
dev.enola.core.util.Log.Severity-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA person must take an action immediately.Critical events cause more severe problems or outages.Debug or trace information.One or more systems are unusable.Error events are likely to cause problems.Routine information, such as ongoing status or performance.Normal but significant events, such as start up, shut down, or a configuration change.The log entry has no assigned severity level.Warning events might cause problems. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA person must take an action immediately.static final intCritical events cause more severe problems or outages.static final intDebug or trace information.static final intOne or more systems are unusable.static final intError events are likely to cause problems.static final intRoutine information, such as ongoing status or performance.static final intNormal but significant events, such as start up, shut down, or a configuration change.static final intThe log entry has no assigned severity level.static final intWarning events might cause problems. -
Method Summary
Modifier and TypeMethodDescriptionstatic Log.SeverityforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Log.Severity> static Log.SeverityvalueOf(int value) Deprecated.static Log.SeverityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Log.SeverityReturns the enum constant of this class with the specified name.static Log.Severity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEVERITY_UNSPECIFIED
The log entry has no assigned severity level.
SEVERITY_UNSPECIFIED = 0; -
SEVERITY_DEBUG
Debug or trace information.
SEVERITY_DEBUG = 100; -
SEVERITY_INFO
Routine information, such as ongoing status or performance.
SEVERITY_INFO = 200; -
SEVERITY_NOTICE
Normal but significant events, such as start up, shut down, or a configuration change.
SEVERITY_NOTICE = 300; -
SEVERITY_WARNING
Warning events might cause problems.
SEVERITY_WARNING = 400; -
SEVERITY_ERROR
Error events are likely to cause problems.
SEVERITY_ERROR = 500; -
SEVERITY_CRITICAL
Critical events cause more severe problems or outages.
SEVERITY_CRITICAL = 600; -
SEVERITY_ALERT
A person must take an action immediately.
SEVERITY_ALERT = 700; -
SEVERITY_EMERGENCY
One or more systems are unusable.
SEVERITY_EMERGENCY = 800; -
UNRECOGNIZED
-
-
Field Details
-
SEVERITY_UNSPECIFIED_VALUE
The log entry has no assigned severity level.
SEVERITY_UNSPECIFIED = 0;- See Also:
-
SEVERITY_DEBUG_VALUE
Debug or trace information.
SEVERITY_DEBUG = 100;- See Also:
-
SEVERITY_INFO_VALUE
Routine information, such as ongoing status or performance.
SEVERITY_INFO = 200;- See Also:
-
SEVERITY_NOTICE_VALUE
Normal but significant events, such as start up, shut down, or a configuration change.
SEVERITY_NOTICE = 300;- See Also:
-
SEVERITY_WARNING_VALUE
Warning events might cause problems.
SEVERITY_WARNING = 400;- See Also:
-
SEVERITY_ERROR_VALUE
Error events are likely to cause problems.
SEVERITY_ERROR = 500;- See Also:
-
SEVERITY_CRITICAL_VALUE
Critical events cause more severe problems or outages.
SEVERITY_CRITICAL = 600;- See Also:
-
SEVERITY_ALERT_VALUE
A person must take an action immediately.
SEVERITY_ALERT = 700;- See Also:
-
SEVERITY_EMERGENCY_VALUE
One or more systems are unusable.
SEVERITY_EMERGENCY = 800;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-