|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.groboutils.autodoc.v1.log4j.Log4jLog
An interface for logging. This allows for an abstraction between the owning class and any underlying logging mechanism desired.
The actual meaning of the logging levels is implementation independent.
| Constructor Summary | |
Log4jLog(java.lang.Class owner)
Standard constructor - uses the Logger based on the given class. |
|
Log4jLog(org.apache.log4j.Logger log)
Create a log interface based on the given Apache Logger. |
|
| Method Summary | |
protected java.lang.Object |
concatMessage(java.lang.Object[] o)
Concatenate the given array into a single string. |
void |
debug(java.lang.Object message)
|
void |
debug(java.lang.Object[] message)
|
void |
debug(java.lang.Object[] message,
java.lang.Throwable error)
|
void |
debug(java.lang.Object message,
java.lang.Throwable error)
|
void |
info(java.lang.Object message)
|
void |
info(java.lang.Object[] message)
|
void |
info(java.lang.Object[] message,
java.lang.Throwable error)
|
void |
info(java.lang.Object message,
java.lang.Throwable error)
|
protected void |
setLog(org.apache.log4j.Logger log)
Sets the internal log instance. |
void |
warn(java.lang.Object message)
|
void |
warn(java.lang.Object[] message)
|
void |
warn(java.lang.Object[] message,
java.lang.Throwable error)
|
void |
warn(java.lang.Object message,
java.lang.Throwable error)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Log4jLog(java.lang.Class owner)
owner - the owning class to assign log responsibility to.
Must not be null.
java.lang.IllegalArgumentException - if owner is null.public Log4jLog(org.apache.log4j.Logger log)
log - the underlying log instance to use for logging. Must not
be null.
java.lang.IllegalArgumentException - if owner is null.| Method Detail |
public void debug(java.lang.Object message)
debug in interface AutoDocLogpublic void debug(java.lang.Object[] message)
debug in interface AutoDocLog
public void debug(java.lang.Object message,
java.lang.Throwable error)
debug in interface AutoDocLog
public void debug(java.lang.Object[] message,
java.lang.Throwable error)
debug in interface AutoDocLogpublic void info(java.lang.Object message)
info in interface AutoDocLogpublic void info(java.lang.Object[] message)
info in interface AutoDocLog
public void info(java.lang.Object message,
java.lang.Throwable error)
info in interface AutoDocLog
public void info(java.lang.Object[] message,
java.lang.Throwable error)
info in interface AutoDocLogpublic void warn(java.lang.Object message)
warn in interface AutoDocLogpublic void warn(java.lang.Object[] message)
warn in interface AutoDocLog
public void warn(java.lang.Object message,
java.lang.Throwable error)
warn in interface AutoDocLog
public void warn(java.lang.Object[] message,
java.lang.Throwable error)
warn in interface AutoDocLogprotected java.lang.Object concatMessage(java.lang.Object[] o)
o - an array (possibly null) of objects (possibly null) to
concatenate their toString() results together.
StringBufferprotected void setLog(org.apache.log4j.Logger log)
log - the log to set. It must not be null.
java.lang.IllegalArgumentException - if log is null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||