public interface Notifiable
Modifier and Type | Field and Description |
---|---|
static int |
LEVEL_DEBUG
Constants used to handle logging level.
|
static int |
LEVEL_ERROR |
static int |
LEVEL_INFO |
static int |
LEVEL_WARN |
static org.apache.log4j.Logger |
log
Used for logging.
|
static java.lang.String |
STR_LEVEL_DEBUG |
static java.lang.String |
STR_LEVEL_ERROR |
static java.lang.String |
STR_LEVEL_INFO |
static java.lang.String |
STR_LEVEL_WARN |
Modifier and Type | Method and Description |
---|---|
int |
getLoggingLevel()
Gets the current logging level.
|
void |
log(java.lang.String message)
Logs a message.
|
void |
logDebug(java.lang.String message)
Logs a message with LEVEL_DEBUG.
|
void |
logError(java.lang.String message)
Logs a message with LEVEL_ERROR.
|
void |
logInfo(java.lang.String message)
Logs a message with LEVEL_INFO.
|
void |
logWarn(java.lang.String message)
Logs a message with LEVEL_WARN.
|
void |
setLoggingLevel(int loggingLevel)
Sets the current logging level.
|
static final org.apache.log4j.Logger log
static final int LEVEL_DEBUG
static final int LEVEL_INFO
static final int LEVEL_WARN
static final int LEVEL_ERROR
static final java.lang.String STR_LEVEL_DEBUG
static final java.lang.String STR_LEVEL_INFO
static final java.lang.String STR_LEVEL_WARN
static final java.lang.String STR_LEVEL_ERROR
void log(java.lang.String message)
message
- The message to be logged.int getLoggingLevel()
void setLoggingLevel(int loggingLevel)
loggingLevel
- The logging level, as defined by one of the
"LOGGING" constants.void logDebug(java.lang.String message)
message
- The message to be logged.void logInfo(java.lang.String message)
message
- The message to be logged.void logWarn(java.lang.String message)
message
- The message to be logged.void logError(java.lang.String message)
message
- The message to be logged.