| Constructor and Description |
|---|
LoggerImpl(org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String format,
Object... args) |
void |
debug(String message,
Throwable throwable)
Deprecated.
|
void |
debug(Throwable t,
String format,
Object... args) |
void |
error(String format,
Object... args) |
void |
error(String message,
Throwable throwable)
Deprecated.
|
void |
error(Throwable t,
String format,
Object... args) |
static Logger |
getClassLogger()
Returns a logger for the calling class or context.
|
static Logger |
getLogger(Class<?> clazz) |
static Logger |
getLogger(String name) |
String |
getName() |
void |
info(String format,
Object... args) |
void |
info(String message,
Throwable throwable)
Deprecated.
|
void |
info(Throwable t,
String format,
Object... args) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
trace(String format,
Object... args) |
void |
trace(Throwable t,
String format,
Object... args) |
void |
warn(String format,
Object... args) |
void |
warn(String message,
Throwable throwable)
Deprecated.
|
void |
warn(Throwable t,
String format,
Object... args) |
public static Logger getClassLogger()
private static final Logger LOG = Logger.getLogger();
As getStackTrace() isn't super cheap, this is not the sort of thing you want (or need)
to be doing hundreds of times a second;public boolean isTraceEnabled()
isTraceEnabled in interface Loggerpublic boolean isDebugEnabled()
isDebugEnabled in interface Loggerpublic boolean isInfoEnabled()
isInfoEnabled in interface Loggerpublic boolean isWarnEnabled()
isWarnEnabled in interface Loggerpublic boolean isErrorEnabled()
isErrorEnabled in interface Logger@Deprecated public void debug(String message, Throwable throwable)
@Deprecated public void info(String message, Throwable throwable)
@Deprecated public void warn(String message, Throwable throwable)
@Deprecated public void error(String message, Throwable throwable)
Copyright © 2012–2018 Facebook, Inc.. All rights reserved.