public class Log4jBasedLogger extends Logger
Logger.Factory
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
myLogger |
Constructor and Description |
---|
Log4jBasedLogger(org.apache.log4j.Logger delegate) |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message) |
void |
debug(java.lang.String message,
java.lang.Throwable t) |
void |
debug(java.lang.Throwable t) |
void |
error(java.lang.String message,
java.lang.Throwable t,
java.lang.String... details) |
void |
info(java.lang.String message) |
void |
info(java.lang.String message,
java.lang.Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isTraceEnabled() |
void |
setLevel(Level level) |
void |
trace(java.lang.String message)
Log a message with 'trace' level which finer-grained than 'debug' level.
|
void |
trace(java.lang.Throwable t) |
void |
warn(java.lang.String message,
java.lang.Throwable t) |
assertTrue, assertTrue, checkException, debug, error, error, error, error, error, error, error, getFactory, getInstance, getInstance, info, isInitialized, setFactory, setFactory, warn, warn
public boolean isDebugEnabled()
isDebugEnabled
in class Logger
public void debug(java.lang.String message, java.lang.Throwable t)
public boolean isTraceEnabled()
isTraceEnabled
in class Logger
public void trace(java.lang.String message)
Logger
Logger.debug(String)
for internal
events of a subsystem to avoid overwhelming the log if 'debug' level is enabled.public void info(java.lang.String message, java.lang.Throwable t)
public void warn(java.lang.String message, java.lang.Throwable t)
public void error(java.lang.String message, java.lang.Throwable t, java.lang.String... details)