com.flat502.rox.log
Class AbstractLog
java.lang.Object
com.flat502.rox.log.AbstractLog
- All Implemented Interfaces:
- Log
- Direct Known Subclasses:
- StreamLog
public abstract class AbstractLog
- extends java.lang.Object
- implements Log
An abstract Log
implementation intended
to simplify developing implementations.
Method Summary |
void |
debug(java.lang.String msg)
|
void |
debug(java.lang.String msg,
java.lang.Throwable e)
|
protected abstract void |
debugImpl(java.lang.String msg,
java.lang.Throwable e)
|
void |
error(java.lang.String msg)
|
void |
error(java.lang.String msg,
java.lang.Throwable e)
|
protected abstract void |
errorImpl(java.lang.String msg,
java.lang.Throwable e)
|
void |
info(java.lang.String msg)
|
void |
info(java.lang.String msg,
java.lang.Throwable e)
|
protected abstract void |
infoImpl(java.lang.String msg,
java.lang.Throwable e)
|
boolean |
logDebug()
|
boolean |
logError()
|
boolean |
logInfo()
|
boolean |
logTrace()
|
boolean |
logWarn()
|
void |
trace(java.lang.String msg)
|
void |
trace(java.lang.String msg,
java.lang.Throwable e)
|
protected abstract void |
traceImpl(java.lang.String msg,
java.lang.Throwable e)
|
void |
warn(java.lang.String msg)
|
void |
warn(java.lang.String msg,
java.lang.Throwable e)
|
protected abstract void |
warnImpl(java.lang.String msg,
java.lang.Throwable e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLog
public AbstractLog(Level level)
trace
public void trace(java.lang.String msg)
- Specified by:
trace
in interface Log
trace
public void trace(java.lang.String msg,
java.lang.Throwable e)
- Specified by:
trace
in interface Log
debug
public void debug(java.lang.String msg)
- Specified by:
debug
in interface Log
debug
public void debug(java.lang.String msg,
java.lang.Throwable e)
- Specified by:
debug
in interface Log
info
public void info(java.lang.String msg)
- Specified by:
info
in interface Log
info
public void info(java.lang.String msg,
java.lang.Throwable e)
- Specified by:
info
in interface Log
warn
public void warn(java.lang.String msg)
- Specified by:
warn
in interface Log
warn
public void warn(java.lang.String msg,
java.lang.Throwable e)
- Specified by:
warn
in interface Log
error
public void error(java.lang.String msg)
- Specified by:
error
in interface Log
error
public void error(java.lang.String msg,
java.lang.Throwable e)
- Specified by:
error
in interface Log
logTrace
public boolean logTrace()
- Specified by:
logTrace
in interface Log
logDebug
public boolean logDebug()
- Specified by:
logDebug
in interface Log
logInfo
public boolean logInfo()
- Specified by:
logInfo
in interface Log
logWarn
public boolean logWarn()
- Specified by:
logWarn
in interface Log
logError
public boolean logError()
- Specified by:
logError
in interface Log
traceImpl
protected abstract void traceImpl(java.lang.String msg,
java.lang.Throwable e)
debugImpl
protected abstract void debugImpl(java.lang.String msg,
java.lang.Throwable e)
infoImpl
protected abstract void infoImpl(java.lang.String msg,
java.lang.Throwable e)
warnImpl
protected abstract void warnImpl(java.lang.String msg,
java.lang.Throwable e)
errorImpl
protected abstract void errorImpl(java.lang.String msg,
java.lang.Throwable e)