Package org.osgi.service.log
Enum LogLevel
- All Implemented Interfaces:
Serializable
,Comparable<LogLevel>
,java.lang.constant.Constable
Log Levels.
- Since:
- 1.4
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAudit – Information that must always be logged.Debug – Detailed output for debugging operations.Error – Information about an error situation.Info – Information about normal operation.Trace level – Large volume of output for tracing operations.Warning – Information about a failure or unwanted situation that is not blocking. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this log level implies the specified log level.static LogLevel
Returns the enum constant of this type with the specified name.static LogLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUDIT
Audit – Information that must always be logged. -
ERROR
Error – Information about an error situation. -
WARN
Warning – Information about a failure or unwanted situation that is not blocking. -
INFO
Info – Information about normal operation. -
DEBUG
Debug – Detailed output for debugging operations. -
TRACE
Trace level – Large volume of output for tracing operations.
-
-
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
-
implies
Returns whether this log level implies the specified log level.- Parameters:
other
- The other log level.- Returns:
true
If this log level implies the specified log level;false
otherwise.
-