|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILogWrapper
This interface defines a wrapper for a logging API. Accessing through this wrapper enables independency between the client and the logging technology.
Method Summary | |
---|---|
void |
debug(Object message)
Logs a message with 'Debug' Level. |
void |
decreaseIndentation()
Decreases logging indentation |
void |
error(Object message)
Logs a message with 'Error' Level. |
void |
fatal(Object message)
Logs a message with 'Fatal' Level. |
String |
getIndentationString()
Returns the indentation string |
LogLevel |
getLevel()
Inspector for the LogWrapper level |
void |
increaseIndentation()
Increases logging indentation. |
void |
info(Object message)
Logs a message with 'Info' Level. |
boolean |
isDebugEnabled()
Inspector for the LogWrapper 'Debug' level |
boolean |
isErrorEnabled()
Inspector for the LogWrapper 'Error' level |
boolean |
isFatalEnabled()
Inspector for the LogWrapper 'Fatal' level |
boolean |
isInfoEnabled()
Inspector for the LogWrapper 'Info' level |
boolean |
isTraceEnabled()
Inspector for the LogWrapper 'Trace' level |
boolean |
isWarnEnabled()
Inspector for the LogWrapper 'Warn' level |
void |
log(LogLevel level,
Object message)
Logging method. |
void |
setDebugLogLevel()
Sets the log level to 'Debug'. |
void |
setErrorLogLevel()
Sets the log level to 'Error'. |
void |
setFatalLogLevel()
Sets the log level to 'Fatal'. |
void |
setInfoLogLevel()
Sets the log level to 'Info'. |
void |
setLevel(LogLevel level)
Sets the log level to the given LogLevel. |
void |
setTraceLogLevel()
Sets the log level to 'Trace'. |
void |
setWarnLogLevel()
Sets the log level to 'Warn'. |
void |
trace(Object message)
Logs a message with 'Trace' Level. |
void |
warn(Object message)
Logs a message with 'Warn' Level. |
Method Detail |
---|
void trace(Object message)
message
- the message to logvoid debug(Object message)
message
- the message to logvoid info(Object message)
message
- the message to logvoid warn(Object message)
message
- the message to logvoid error(Object message)
message
- the message to logvoid fatal(Object message)
message
- the message to logboolean isTraceEnabled()
boolean isDebugEnabled()
boolean isInfoEnabled()
boolean isWarnEnabled()
boolean isErrorEnabled()
boolean isFatalEnabled()
LogLevel getLevel()
void setTraceLogLevel()
void setDebugLogLevel()
void setInfoLogLevel()
void setWarnLogLevel()
void setErrorLogLevel()
void setFatalLogLevel()
void setLevel(LogLevel level)
level
- the new LogLevelvoid log(LogLevel level, Object message)
level
- the log levelmessage
- the message to logvoid increaseIndentation()
void decreaseIndentation()
String getIndentationString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |