org.elasticsearch.common.logging.jdk
Class JdkESLogger

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

public class JdkESLogger
extends AbstractESLogger


Constructor Summary
JdkESLogger(java.lang.String prefix, java.lang.String name, java.util.logging.Logger logger)
           
 
Method Summary
 java.lang.String getName()
           
protected  void internalDebug(java.lang.String msg)
           
protected  void internalDebug(java.lang.String msg, java.lang.Throwable cause)
           
protected  void internalError(java.lang.String msg)
           
protected  void internalError(java.lang.String msg, java.lang.Throwable cause)
           
protected  void internalInfo(java.lang.String msg)
           
protected  void internalInfo(java.lang.String msg, java.lang.Throwable cause)
           
protected  void internalTrace(java.lang.String msg)
           
protected  void internalTrace(java.lang.String msg, java.lang.Throwable cause)
           
protected  void internalWarn(java.lang.String msg)
           
protected  void internalWarn(java.lang.String msg, java.lang.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.
 
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

JdkESLogger

public JdkESLogger(java.lang.String prefix,
                   java.lang.String name,
                   java.util.logging.Logger logger)
Method Detail

getName

public java.lang.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(java.lang.String msg)
Specified by:
internalTrace in class AbstractESLogger

internalTrace

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

internalDebug

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

internalDebug

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

internalInfo

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

internalInfo

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

internalWarn

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

internalWarn

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

internalError

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

internalError

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