com.ibm.streams.operator.logging
Class LogLevel
- java.lang.Object
-
- java.util.logging.Level
-
- com.ibm.streams.operator.logging.LogLevel
-
- All Implemented Interfaces:
- java.io.Serializable
public final class LogLevel extends java.util.logging.Level
Convenience class to provide SPL log levels through thejava.util.logging
facility.
The SPL log levels in descending order are:
When a message is logged to the SPL log facility itsjava.util.logging.Level
is mapped to the SPL log level as follows:SPL log level mapping SPL Log Level java.util.logging.Level
error
Level.SEVERE
ERROR
>= 1000
warn
Level.WARNING
WARN
>= 900 AND < 1000
info
Level.INFO
Level.CONFIG
INFO
>= 700 AND < 900
- Since:
- InfoSphere® Streams Version 3.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static LogLevel
ERROR
ERROR is a level indicating the operator cannot continue.static java.lang.String
IBM_COPYRIGHT
static LogLevel
INFO
INFO is level indicating general information outlining overall operator progress.static LogLevel
WARN
WARN is a level indicating a potential error or impending error.
-
-
-
Field Detail
-
IBM_COPYRIGHT
public static final java.lang.String IBM_COPYRIGHT
- See Also:
- Constant Field Values
-
ERROR
public static final LogLevel ERROR
ERROR is a level indicating the operator cannot continue. All internal or unexpected failures should be logged at this level. This level is initialized to 1000 and is equal toLevel.SEVERE
.
-
WARN
public static final LogLevel WARN
WARN is a level indicating a potential error or impending error. This level can also indicate a progressive failure (for example, the potential leaking of resources). This level is initialized to 900 and is equal toLevel.WARNING
.
-
INFO
public static final LogLevel INFO
INFO is level indicating general information outlining overall operator progress. Information that helps to give context to a log, often when an operator is being initialized, handlingallPortsReady()
or being shutdown. This level is initialized to 700 and is equal toLevel.CONFIG
.
-
-