|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.service.log.LogWriter
Class to write an application log
| Field Summary | |
(package private) int |
logLevel
The currently active log level. |
| Fields inherited from interface org.jwarp.service.log.ILogWriter |
LOG_LEVEL_ALL, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_NONE, LOG_LEVEL_UNKNOWN, LOG_LEVEL_WARNING |
| Constructor Summary | |
LogWriter()
Creates a new LogWriter |
|
LogWriter(java.lang.String name)
Creates a logwriter with the given name. |
|
| Method Summary | |
void |
addLogListener(ILogListener listener)
Add a new LogWriter |
void |
configure(org.jdom.Element config)
Creates a logwriter with the given config. |
int |
getLogLevel()
Returns the current active log level. |
java.lang.String |
getLogName()
Return the log's name |
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 class java.lang.Object |
|
| Field Detail |
int logLevel
| Constructor Detail |
public LogWriter()
public LogWriter(java.lang.String name)
| Method Detail |
public void configure(org.jdom.Element config)
throws ConfigurationException
configure in interface IConfigurableorg.jwarp.service.configuration.IConfigurableconfiguration - the class configurations.public java.lang.String getLogName()
getLogName in interface ILogWriterpublic void addLogListener(ILogListener listener)
addLogListener in interface ILogWriterlistener - The listener to addlogLevel - Log-level to start withpublic void removeAllLogListeners()
removeAllLogListeners in interface ILogWriterpublic void log(LogEvent event)
log in interface ILogWriterevent - The event to log
public void log(java.lang.String message,
int logLevel)
log in interface ILogWritermessage - Message for the loglogLevel - log level of the message
public void log(java.lang.Exception exception,
int logLevel)
log in interface ILogWriterexception - The exception to loglogLevel - log level of the exceptionpublic void log(java.lang.Exception exception)
log in interface ILogWriterexception - The exception to logpublic void logInformation(java.lang.String message)
logInformation in interface ILogWritermessage - The message to logpublic void logWarning(java.lang.String message)
logWarning in interface ILogWritermessage - The message to logpublic void logError(java.lang.String message)
logError in interface ILogWritermessage - The message to logpublic void logDebug(java.lang.String message)
logDebug in interface ILogWritermessage - The message to logpublic int getLogLevel()
getLogLevel in interface ILogWriterpublic void setLogLevel(int level)
setLogLevel in interface ILogWriterlevel - The new log level
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||