|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.objectwave.logging.log4j.Log4jImpl
The concrete implmentation of the LogIF that uses the Log4j logging classes.
| Nested Class Summary | |
static class |
Log4jImpl.Test
|
| Field Summary | |
protected java.lang.ThreadLocal |
traceHolder
|
| Constructor Summary | |
Log4jImpl()
|
|
| Method Summary | |
protected boolean |
alreadyConfigured()
|
void |
debug(java.lang.Object source,
java.lang.String message)
|
void |
debug(java.lang.Object source,
java.lang.String message,
java.lang.Throwable cause)
|
void |
error(java.lang.Object source,
java.lang.String message,
java.lang.Throwable cause)
|
protected java.lang.String |
formatCategory(java.lang.String defaultCategory)
Decorate the text with any tracing information. |
protected java.lang.String |
getCategoryId(java.lang.Object source)
Categories are identified by the package name of the object. |
protected java.lang.String |
getPackageName(java.lang.String className)
Get the 'package name' from the class full name. |
void |
info(java.lang.Object source,
java.lang.String message)
|
protected void |
initialize()
|
boolean |
isDebugEnabled(java.lang.Object source)
isDebugEnabled for the given source. |
void |
track(java.lang.String categoryName,
Trace codeBlock)
Run the provided code block and decorate any resulting log messages with specified category. |
void |
warn(java.lang.Object source,
java.lang.String message)
|
void |
warn(java.lang.Object source,
java.lang.String message,
java.lang.Throwable cause)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.ThreadLocal traceHolder
| Constructor Detail |
public Log4jImpl()
| Method Detail |
public boolean isDebugEnabled(java.lang.Object source)
isDebugEnabled in interface LogIFsource -
protected java.lang.String getCategoryId(java.lang.Object source)
source -
protected java.lang.String getPackageName(java.lang.String className)
className -
public void track(java.lang.String categoryName,
Trace codeBlock)
throws java.lang.Exception
track in interface LogIFcategoryName - The 'tracking' name that will be used to follow the call path.codeBlock - The code to execute.
java.lang.Exception - Any exception could occur while running code!protected java.lang.String formatCategory(java.lang.String defaultCategory)
defaultCategory -
public void info(java.lang.Object source,
java.lang.String message)
info in interface LogIFsource - message -
public void warn(java.lang.Object source,
java.lang.String message)
warn in interface LogIFsource - message -
public void warn(java.lang.Object source,
java.lang.String message,
java.lang.Throwable cause)
warn in interface LogIFsource - message - cause -
public void debug(java.lang.Object source,
java.lang.String message)
debug in interface LogIFsource - message -
public void debug(java.lang.Object source,
java.lang.String message,
java.lang.Throwable cause)
debug in interface LogIFsource - message - cause -
public void error(java.lang.Object source,
java.lang.String message,
java.lang.Throwable cause)
error in interface LogIFsource - message - cause - protected boolean alreadyConfigured()
protected void initialize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||