|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.spy.memcached.compat.log.AbstractLogger net.spy.memcached.compat.log.DefaultLogger
public class DefaultLogger
Default logger implementation. This logger is really primitive. It just logs everything to stderr if it's higher than INFO.
Constructor Summary | |
---|---|
DefaultLogger(String name)
Get an instance of DefaultLogger. |
Method Summary | |
---|---|
boolean |
isDebugEnabled()
False. |
boolean |
isInfoEnabled()
True. |
void |
log(Level level,
Object message,
Throwable e)
Subclasses should implement this method to determine what to do when a client wants to log at a particular level. |
Methods inherited from class net.spy.memcached.compat.log.AbstractLogger |
---|
debug, debug, debug, error, error, error, fatal, fatal, fatal, getName, getThrowable, info, info, info, log, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLogger(String name)
Method Detail |
---|
public boolean isDebugEnabled()
isDebugEnabled
in interface Logger
isDebugEnabled
in class AbstractLogger
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
isInfoEnabled
in class AbstractLogger
public void log(Level level, Object message, Throwable e)
AbstractLogger
log
in interface Logger
log
in class AbstractLogger
level
- the level to log at (see the fields of this class)message
- the message to loge
- the exception that caused the message (or null)AbstractLogger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |