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 Logger
isDebugEnabled
in class AbstractLogger
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
isInfoEnabled
in class AbstractLogger
public void log(Level level, java.lang.Object message, java.lang.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
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.