public class DefaultLogger extends AbstractLogger
| Constructor and Description |
|---|
DefaultLogger(java.lang.String name)
Get an instance of DefaultLogger.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDebugEnabled()
Always returns false, debug is not enabled on the DefaultLogger.
|
boolean |
isInfoEnabled()
Always returns true, info is always enabled on the DefaultLogger.
|
boolean |
isTraceEnabled()
Always returns false, trace is not enabled on the DefaultLogger.
|
void |
log(Level level,
java.lang.Object message,
java.lang.Throwable e)
Subclasses should implement this method to determine what to do when a
client wants to log at a particular level.
|
public DefaultLogger(java.lang.String name)
public boolean isTraceEnabled()
public boolean isDebugEnabled()
isDebugEnabled in interface LoggerisDebugEnabled in class AbstractLoggerpublic boolean isInfoEnabled()
isInfoEnabled in interface LoggerisInfoEnabled in class AbstractLoggerpublic void log(Level level, java.lang.Object message, java.lang.Throwable e)
AbstractLoggerlog in interface Loggerlog in class AbstractLoggerlevel - the level to log at (see the fields of this class)message - the message to loge - the exception that caused the message (or null)AbstractLoggerCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.