|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.logging.LogTemplate<C>
public abstract class LogTemplate<C>
Log template interface is the root of a hierarchy of implementations with different purposes.
| Constructor Summary | |
|---|---|
LogTemplate()
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
isEnabled(C context)
Tell whether logging is enabled. |
boolean |
log(C context,
LogMessageSource<C> messageSource)
If enabled, get message for context and log id. |
protected abstract void |
log(String message)
Log a message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogTemplate()
| Method Detail |
|---|
protected abstract boolean isEnabled(C context)
public final boolean log(C context,
LogMessageSource<C> messageSource)
context - ContextmessageSource - Message producerprotected abstract void log(String message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||