|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface implementing a log writer.
| Field Summary | |
static int |
LOG_LEVEL_ALL
|
static int |
LOG_LEVEL_DEBUG
|
static int |
LOG_LEVEL_ERROR
|
static int |
LOG_LEVEL_FATAL_ERROR
|
static int |
LOG_LEVEL_INFO
|
static int |
LOG_LEVEL_NONE
|
static int |
LOG_LEVEL_UNKNOWN
|
static int |
LOG_LEVEL_WARNING
|
| Method Summary | |
void |
addLogListener(ILogListener listener)
Add a new LogListener |
int |
getLogLevel()
Returns the current active log level. |
java.lang.String |
getLogName()
|
void |
log(java.lang.Exception exception)
Log an exception. |
void |
log(java.lang.Exception exception,
int logLevel)
Log an exception. |
void |
log(LogEvent event)
Log an event |
void |
log(java.lang.String message,
int logLevel)
Log an message |
void |
logDebug(java.lang.String message)
Log a message. |
void |
logError(java.lang.String message)
Log a message. |
void |
logInformation(java.lang.String message)
Log a message. |
void |
logWarning(java.lang.String message)
Log a message. |
void |
removeAllLogListeners()
Removes all log listeners |
void |
setLogLevel(int level)
Set the current log level. |
| Methods inherited from interface org.jwarp.service.configuration.IConfigurable |
configure |
| Field Detail |
public static final int LOG_LEVEL_UNKNOWN
public static final int LOG_LEVEL_NONE
public static final int LOG_LEVEL_FATAL_ERROR
public static final int LOG_LEVEL_ERROR
public static final int LOG_LEVEL_WARNING
public static final int LOG_LEVEL_DEBUG
public static final int LOG_LEVEL_INFO
public static final int LOG_LEVEL_ALL
| Method Detail |
public java.lang.String getLogName()
public void addLogListener(ILogListener listener)
listener - The listener to addlogLevel - Log-level to start withpublic void removeAllLogListeners()
public void log(LogEvent event)
event - The event to log
public void log(java.lang.String message,
int logLevel)
message - Message for the loglogLevel - log level of the message
public void log(java.lang.Exception exception,
int logLevel)
exception - The exception to loglogLevel - log level of the exceptionpublic void log(java.lang.Exception exception)
exception - The exception to logpublic void logInformation(java.lang.String message)
message - The message to logpublic void logWarning(java.lang.String message)
message - The message to logpublic void logError(java.lang.String message)
message - The message to logpublic void logDebug(java.lang.String message)
message - The message to logpublic int getLogLevel()
public void setLogLevel(int level)
level - The new log level
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||