net.spy.memcached.compat.log
Class SunLogger

java.lang.Object
  extended by net.spy.memcached.compat.log.AbstractLogger
      extended by net.spy.memcached.compat.log.SunLogger
All Implemented Interfaces:
Logger

public class SunLogger
extends AbstractLogger

Logging implementation using the sun logger.


Constructor Summary
SunLogger(String name)
          Get an instance of SunLogger.
 
Method Summary
 boolean isDebugEnabled()
          True if the underlying logger would allow Level.FINE through.
 boolean isInfoEnabled()
          True if the underlying logger would allow Level.INFO through.
 void log(Level level, Object message, Throwable e)
          Wrapper around sun logger.
 
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

SunLogger

public SunLogger(String name)
Get an instance of SunLogger.

Method Detail

isDebugEnabled

public boolean isDebugEnabled()
True if the underlying logger would allow Level.FINE through.

Specified by:
isDebugEnabled in interface Logger
Specified by:
isDebugEnabled in class AbstractLogger
Returns:
true if debug messages would be displayed

isInfoEnabled

public boolean isInfoEnabled()
True if the underlying logger would allow Level.INFO through.

Specified by:
isInfoEnabled in interface Logger
Specified by:
isInfoEnabled in class AbstractLogger
Returns:
true if info messages would be displayed

log

public void log(Level level,
                Object message,
                Throwable e)
Wrapper around sun logger.

Specified by:
log in interface Logger
Specified by:
log in class AbstractLogger
Parameters:
level - net.spy.compat.log.AbstractLogger level.
message - object message
e - optional throwable