public class Slf4jLogger extends Object implements Logger
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN| Constructor and Description |
|---|
Slf4jLogger(Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message) |
void |
debug(String message,
Throwable throwable) |
void |
error(String message) |
void |
error(String message,
Throwable throwable) |
void |
fatalError(String message) |
void |
fatalError(String message,
Throwable throwable) |
Logger |
getChildLogger(String name)
Warning: ignored (always return
null). |
String |
getName() |
int |
getThreshold()
Warning: ignored (always return
0 == Logger.LEVEL_DEBUG). |
void |
info(String message) |
void |
info(String message,
Throwable throwable) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isWarnEnabled() |
void |
setThreshold(int threshold)
Warning: ignored.
|
void |
warn(String message) |
void |
warn(String message,
Throwable throwable) |
public Slf4jLogger(Logger logger)
public boolean isDebugEnabled()
isDebugEnabled in interface Loggerpublic boolean isInfoEnabled()
isInfoEnabled in interface Loggerpublic boolean isWarnEnabled()
isWarnEnabled in interface Loggerpublic boolean isErrorEnabled()
isErrorEnabled in interface Loggerpublic void fatalError(String message)
fatalError in interface Loggerpublic void fatalError(String message, Throwable throwable)
fatalError in interface Loggerpublic boolean isFatalErrorEnabled()
isFatalErrorEnabled in interface Loggerpublic int getThreshold()
0 == Logger.LEVEL_DEBUG).getThreshold in interface Loggerpublic void setThreshold(int threshold)
setThreshold in interface Loggerpublic Logger getChildLogger(String name)
null).getChildLogger in interface LoggerCopyright © 2001–2014 The Apache Software Foundation. All rights reserved.