|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpt.digitalis.log.BaseLogWrapper
pt.digitalis.log.LogWrapperLog4JImpl
public class LogWrapperLog4JImpl
This class provides an implementation of the logger API as specified by the interface ILogWrapper. This
implementation is based upon the standard implementation base BaseLogWrapper.
This implementation uses Log4J as its logging platform.
| Field Summary |
|---|
| Fields inherited from class pt.digitalis.log.BaseLogWrapper |
|---|
indentationString |
| Constructor Summary | |
|---|---|
LogWrapperLog4JImpl()
Default constructor. |
|
LogWrapperLog4JImpl(String loggerName)
Creates a new logger with the name supplied as a parameter and promotes its initialization. |
|
| Method Summary | |
|---|---|
protected void |
applyCustomConfiguration()
Current Logger implementation custom configurations. |
LogLevel |
getLevel()
Inspector for the LogWrapper level |
void |
setLevel(LogLevel level)
Sets the log level to the given LogLevel. |
protected void |
writeLog(LogLevel level,
Object message)
Executes the actual writting operation of the LOG. |
| Methods inherited from class pt.digitalis.log.BaseLogWrapper |
|---|
debug, decreaseIndentation, error, fatal, getIndentationString, increaseIndentation, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, log, setDebugLogLevel, setErrorLogLevel, setFatalLogLevel, setInfoLogLevel, setTraceLogLevel, setWarnLogLevel, trace, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogWrapperLog4JImpl()
public LogWrapperLog4JImpl(String loggerName)
loggerName - the logger name| Method Detail |
|---|
protected void applyCustomConfiguration()
protected void writeLog(LogLevel level,
Object message)
BaseLogWrapperBaseLogWrapper.log(LogLevel, Object) and receives the interpreted
message to write (including identation)
writeLog in class BaseLogWrapperlevel - the LogLevelmessage - the compiled message to write to logBaseLogWrapper.writeLog(pt.digitalis.log.LogLevel, java.lang.Object)public LogLevel getLevel()
ILogWrapper
ILogWrapper.getLevel()public void setLevel(LogLevel level)
ILogWrapper
level - the new LogLevelILogWrapper.setLevel(pt.digitalis.log.LogLevel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||