Package io.opentelemetry.api.logs
Enum Severity
- java.lang.Object
-
- java.lang.Enum<Severity>
-
- io.opentelemetry.api.logs.Severity
-
-
Field Summary
Fields Modifier and Type Field Description private int
severityNumber
-
Constructor Summary
Constructors Modifier Constructor Description private
Severity(int severityNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSeverityNumber()
static Severity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED_SEVERITY_NUMBER
public static final Severity UNDEFINED_SEVERITY_NUMBER
-
TRACE
public static final Severity TRACE
-
TRACE2
public static final Severity TRACE2
-
TRACE3
public static final Severity TRACE3
-
TRACE4
public static final Severity TRACE4
-
DEBUG
public static final Severity DEBUG
-
DEBUG2
public static final Severity DEBUG2
-
DEBUG3
public static final Severity DEBUG3
-
DEBUG4
public static final Severity DEBUG4
-
INFO
public static final Severity INFO
-
INFO2
public static final Severity INFO2
-
INFO3
public static final Severity INFO3
-
INFO4
public static final Severity INFO4
-
WARN
public static final Severity WARN
-
WARN2
public static final Severity WARN2
-
WARN3
public static final Severity WARN3
-
WARN4
public static final Severity WARN4
-
ERROR
public static final Severity ERROR
-
ERROR2
public static final Severity ERROR2
-
ERROR3
public static final Severity ERROR3
-
ERROR4
public static final Severity ERROR4
-
FATAL
public static final Severity FATAL
-
FATAL2
public static final Severity FATAL2
-
FATAL3
public static final Severity FATAL3
-
FATAL4
public static final Severity FATAL4
-
-
Method Detail
-
values
public static Severity[] 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 (Severity c : Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Severity 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
-
getSeverityNumber
public int getSeverityNumber()
-
-