public class Log4jESLogger extends AbstractESLogger
| Constructor and Description |
|---|
Log4jESLogger(String prefix,
org.apache.log4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLevel()
Returns the current logger level
If the level is null, it means that the logger inherits its level
from its nearest ancestor with a specific (non-null) level value.
|
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. |
org.apache.log4j.Logger |
logger() |
void |
setLevel(String level)
Allows to set the logger level
If the new level is null, the logger will inherit its level
from its nearest ancestor with a specific (non-null) level value.
|
public Log4jESLogger(String prefix, org.apache.log4j.Logger logger)
public org.apache.log4j.Logger logger()
public void setLevel(String level)
ESLoggerlevel - the new levelpublic String getLevel()
ESLoggerpublic String getName()
public boolean isTraceEnabled()
ESLoggertrue if a TRACE level message is logged.public boolean isDebugEnabled()
ESLoggertrue if a DEBUG level message is logged.public boolean isInfoEnabled()
ESLoggertrue if an INFO level message is logged.public boolean isWarnEnabled()
ESLoggertrue if a WARN level message is logged.public boolean isErrorEnabled()
ESLoggertrue if an ERROR level message is logged.protected void internalTrace(String msg)
internalTrace in class AbstractESLoggerprotected void internalTrace(String msg, Throwable cause)
internalTrace in class AbstractESLoggerprotected void internalDebug(String msg)
internalDebug in class AbstractESLoggerprotected void internalDebug(String msg, Throwable cause)
internalDebug in class AbstractESLoggerprotected void internalInfo(String msg)
internalInfo in class AbstractESLoggerprotected void internalInfo(String msg, Throwable cause)
internalInfo in class AbstractESLoggerprotected void internalWarn(String msg)
internalWarn in class AbstractESLoggerprotected void internalWarn(String msg, Throwable cause)
internalWarn in class AbstractESLoggerprotected void internalError(String msg)
internalError in class AbstractESLoggerprotected void internalError(String msg, Throwable cause)
internalError in class AbstractESLoggerCopyright © 2009–2017. All rights reserved.