net.spy.log
Class DefaultLogger
java.lang.Object
net.spy.log.AbstractLogger
net.spy.log.DefaultLogger
- All Implemented Interfaces:
- Logger
- public class DefaultLogger
- extends AbstractLogger
Default logger implementation.
This logger is really primitive. It just logs everything to stderr if
it's higher than INFO.
|
Method Summary |
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.log.AbstractLogger |
debug, debug, error, error, fatal, fatal, getName, info, info, isDebugEnabled, log, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLogger
public DefaultLogger(String name)
- Get an instance of DefaultLogger.
isInfoEnabled
public boolean isInfoEnabled()
- True.
- Specified by:
isInfoEnabled in interface Logger- Overrides:
isInfoEnabled in class AbstractLogger
- Returns:
- true if info messages would be displayed
log
public void log(Level level,
Object message,
Throwable e)
- Description copied from class:
AbstractLogger
- Subclasses should implement this method to determine what to do when
a client wants to log at a particular level.
- Specified by:
log in interface Logger- Specified by:
log in class AbstractLogger
- Parameters:
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)- See Also:
AbstractLogger