|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.util.jcache.CacheLogger
org.fjank.jcache.DefaultCacheLogger
public final class DefaultCacheLogger
Logs all messages to System.out for the moment. Reprogram to log to a file later. Does not implement loggerSeverity.
Field Summary |
---|
Fields inherited from class javax.util.jcache.CacheLogger |
---|
DEBUG, DEFAULT, ERROR, FATAL, INFO, OFF, TRACE, WARNING |
Constructor Summary | |
---|---|
DefaultCacheLogger()
Creates new DefaultCacheLogger |
Method Summary | |
---|---|
void |
flush()
log messages are buffered by the cache. |
void |
init(String fileName,
int severity)
is called by the caching system when the CacheLogger is instanciated to complete any initialization requirements. |
void |
log(String message)
application writers can implement this method and provide their own mechanism to log a message. |
void |
log(String message,
Throwable cause)
application writers can implement this method and provide their own mechanism to log a message. |
Methods inherited from class javax.util.jcache.CacheLogger |
---|
getSeverity, setSeverity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCacheLogger()
Method Detail |
---|
public void log(String message, Throwable cause)
log
in class CacheLogger
message
- the message to log.cause
- the Exception responsible for causing an log event to
happen.public void flush()
flush
in class CacheLogger
public void log(String message)
log
in class CacheLogger
message
- the message to log.public void init(String fileName, int severity)
init
in class CacheLogger
fileName
- the value from the CacheAttributeseverity
- the value from the CacheAttributes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |