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)
ESLogger
level
- the new levelpublic String getLevel()
ESLogger
public String getName()
public boolean isTraceEnabled()
ESLogger
true
if a TRACE level message is logged.public boolean isDebugEnabled()
ESLogger
true
if a DEBUG level message is logged.public boolean isInfoEnabled()
ESLogger
true
if an INFO level message is logged.public boolean isWarnEnabled()
ESLogger
true
if a WARN level message is logged.public boolean isErrorEnabled()
ESLogger
true
if an ERROR level message is logged.protected void internalTrace(String msg)
internalTrace
in class AbstractESLogger
protected void internalTrace(String msg, Throwable cause)
internalTrace
in class AbstractESLogger
protected void internalDebug(String msg)
internalDebug
in class AbstractESLogger
protected void internalDebug(String msg, Throwable cause)
internalDebug
in class AbstractESLogger
protected void internalInfo(String msg)
internalInfo
in class AbstractESLogger
protected void internalInfo(String msg, Throwable cause)
internalInfo
in class AbstractESLogger
protected void internalWarn(String msg)
internalWarn
in class AbstractESLogger
protected void internalWarn(String msg, Throwable cause)
internalWarn
in class AbstractESLogger
protected void internalError(String msg)
internalError
in class AbstractESLogger
protected void internalError(String msg, Throwable cause)
internalError
in class AbstractESLogger
Copyright © 2009–2016. All rights reserved.