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 Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface Logger
public void fatalError(String message)
fatalError
in interface Logger
public void fatalError(String message, Throwable throwable)
fatalError
in interface Logger
public boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface Logger
public int getThreshold()
0 == Logger.LEVEL_DEBUG
).getThreshold
in interface Logger
public void setThreshold(int threshold)
setThreshold
in interface Logger
public Logger getChildLogger(String name)
null
).getChildLogger
in interface Logger
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.