|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.log.BaseLogWrapper
public abstract class BaseLogWrapper
This class provides a standard base implementation of the logger API as
specified by the interface ILogWrapper
. The goal of this class is to
facilitate the development of new Implementation classes of the logger API as
defined by ILogWrapper
.
Field Summary | |
---|---|
protected String |
indentationString
Indentation control variable |
Constructor Summary | |
---|---|
BaseLogWrapper()
|
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 |
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 |
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. |
protected abstract void |
writeLog(LogLevel level,
Object message)
Executes the actual writting operation of the LOG. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pt.digitalis.log.ILogWrapper |
---|
getLevel, setLevel |
Field Detail |
---|
protected String indentationString
Constructor Detail |
---|
public BaseLogWrapper()
Method Detail |
---|
public void trace(Object message)
trace
in interface ILogWrapper
message
- the message to logpublic void debug(Object message)
debug
in interface ILogWrapper
message
- the message to logpublic void info(Object message)
info
in interface ILogWrapper
message
- the message to logpublic void warn(Object message)
warn
in interface ILogWrapper
message
- the message to logpublic void error(Object message)
error
in interface ILogWrapper
message
- the message to logpublic void fatal(Object message)
fatal
in interface ILogWrapper
message
- the message to logprotected abstract void writeLog(LogLevel level, Object message)
log(LogLevel, Object)
and receives the interpreted
message to write (including identation)
level
- the LogLevelmessage
- the compiled message to write to logpublic final void log(LogLevel level, Object message)
ILogWrapper
log
in interface ILogWrapper
level
- the log levelmessage
- the message to logILogWrapper.log(pt.digitalis.log.LogLevel,
java.lang.Object)
public boolean isTraceEnabled()
isTraceEnabled
in interface ILogWrapper
public boolean isDebugEnabled()
isDebugEnabled
in interface ILogWrapper
public boolean isInfoEnabled()
isInfoEnabled
in interface ILogWrapper
public boolean isWarnEnabled()
isWarnEnabled
in interface ILogWrapper
public boolean isErrorEnabled()
isErrorEnabled
in interface ILogWrapper
public boolean isFatalEnabled()
isFatalEnabled
in interface ILogWrapper
public void setTraceLogLevel()
setTraceLogLevel
in interface ILogWrapper
public void setDebugLogLevel()
setDebugLogLevel
in interface ILogWrapper
public void setInfoLogLevel()
setInfoLogLevel
in interface ILogWrapper
public void setWarnLogLevel()
setWarnLogLevel
in interface ILogWrapper
public void setErrorLogLevel()
setErrorLogLevel
in interface ILogWrapper
public void setFatalLogLevel()
setFatalLogLevel
in interface ILogWrapper
public void increaseIndentation()
increaseIndentation
in interface ILogWrapper
public void decreaseIndentation()
decreaseIndentation
in interface ILogWrapper
public String getIndentationString()
getIndentationString
in interface ILogWrapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |