org.elasticsearch.common.logging.slf4j
Class Slf4jESLogger

java.lang.Object
  extended by org.elasticsearch.common.logging.support.AbstractESLogger
      extended by org.elasticsearch.common.logging.slf4j.Slf4jESLogger
All Implemented Interfaces:
ESLogger

public class Slf4jESLogger
extends AbstractESLogger


Constructor Summary
Slf4jESLogger(String prefix, org.slf4j.Logger logger)
           
 
Method Summary
 String getName()
           
protected  void internalDebug(String msg)
           
protected  void internalDebug(String msg, Throwable cause)
           
protected  void internalError(String msg)
           
protected  void internalError(String msg, Throwable cause)
           
protected  void internalInfo(String msg)
           
protected  void internalInfo(String msg, Throwable cause)
           
protected  void internalTrace(String msg)
           
protected  void internalTrace(String msg, Throwable cause)
           
protected  void internalWarn(String msg)
           
protected  void internalWarn(String msg, Throwable cause)
           
 boolean isDebugEnabled()
          Returns true if a DEBUG level message is logged.
 boolean isErrorEnabled()
          Returns true if an ERROR level message is logged.
 boolean isInfoEnabled()
          Returns true if an INFO level message is logged.
 boolean isTraceEnabled()
          Returns true if a TRACE level message is logged.
 boolean isWarnEnabled()
          Returns true if a WARN level message is logged.
 void setLevel(String level)
           
 
Methods inherited from class org.elasticsearch.common.logging.support.AbstractESLogger
debug, debug, error, error, getPrefix, info, info, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slf4jESLogger

public Slf4jESLogger(String prefix,
                     org.slf4j.Logger logger)
Method Detail

setLevel

public void setLevel(String level)

getName

public String getName()

isTraceEnabled

public boolean isTraceEnabled()
Description copied from interface: ESLogger
Returns true if a TRACE level message is logged.


isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: ESLogger
Returns true if a DEBUG level message is logged.


isInfoEnabled

public boolean isInfoEnabled()
Description copied from interface: ESLogger
Returns true if an INFO level message is logged.


isWarnEnabled

public boolean isWarnEnabled()
Description copied from interface: ESLogger
Returns true if a WARN level message is logged.


isErrorEnabled

public boolean isErrorEnabled()
Description copied from interface: ESLogger
Returns true if an ERROR level message is logged.


internalTrace

protected void internalTrace(String msg)
Specified by:
internalTrace in class AbstractESLogger

internalTrace

protected void internalTrace(String msg,
                             Throwable cause)
Specified by:
internalTrace in class AbstractESLogger

internalDebug

protected void internalDebug(String msg)
Specified by:
internalDebug in class AbstractESLogger

internalDebug

protected void internalDebug(String msg,
                             Throwable cause)
Specified by:
internalDebug in class AbstractESLogger

internalInfo

protected void internalInfo(String msg)
Specified by:
internalInfo in class AbstractESLogger

internalInfo

protected void internalInfo(String msg,
                            Throwable cause)
Specified by:
internalInfo in class AbstractESLogger

internalWarn

protected void internalWarn(String msg)
Specified by:
internalWarn in class AbstractESLogger

internalWarn

protected void internalWarn(String msg,
                            Throwable cause)
Specified by:
internalWarn in class AbstractESLogger

internalError

protected void internalError(String msg)
Specified by:
internalError in class AbstractESLogger

internalError

protected void internalError(String msg,
                             Throwable cause)
Specified by:
internalError in class AbstractESLogger


Copyright © 2009-2012. All Rights Reserved.