com.ibm.streams.operator.log4j
Class LogLevel
- java.lang.Object
-
- org.apache.log4j.Priority
-
- org.apache.log4j.Level
-
- com.ibm.streams.operator.log4j.LogLevel
-
- All Implemented Interfaces:
- java.io.Serializable
public final class LogLevel extends org.apache.log4j.Level
Convenience class to provide SPL log levels through theorg.apache.log4j
facility.
The SPL log levels in descending order are:
When a message is logged to the SPL log facility itsorg.apache.log4j.Level
is mapped to the SPL log level as follows:SPL log level mapping SPL Log Level org.apache.log4j.Level
error
Level.FATAL
Level.ERROR
ERROR
warn
Level.WARN
WARN
info
Level.INFO
INFO
- 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 equal toLevel.ERROR
.
-
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 equal toLevel.WARN
.
-
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 equal toLevel.INFO
.
-
-