Constructor and Description |
---|
DeferredLog() |
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message) |
void |
debug(Object message,
Throwable t) |
void |
error(Object message) |
void |
error(Object message,
Throwable t) |
void |
fatal(Object message) |
void |
fatal(Object message,
Throwable t) |
void |
info(Object message) |
void |
info(Object message,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
static Log |
replay(Log source,
Class<?> destination)
Replay from a source log to a destination log when the source is deferred.
|
static Log |
replay(Log source,
Log destination)
Replay from a source log to a destination log when the source is deferred.
|
void |
replayTo(Class<?> destination)
Replay deferred logging to the specified destination.
|
void |
replayTo(Log destination)
Replay deferred logging to the specified destination.
|
void |
switchTo(Class<?> destination)
Switch from deferred logging to immediate logging to the specified destination.
|
void |
switchTo(Log destination)
Switch from deferred logging to immediate logging to the specified destination.
|
void |
trace(Object message) |
void |
trace(Object message,
Throwable t) |
void |
warn(Object message) |
void |
warn(Object message,
Throwable t) |
public boolean isTraceEnabled()
isTraceEnabled
in interface Log
public boolean isDebugEnabled()
isDebugEnabled
in interface Log
public boolean isInfoEnabled()
isInfoEnabled
in interface Log
public boolean isWarnEnabled()
isWarnEnabled
in interface Log
public boolean isErrorEnabled()
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
isFatalEnabled
in interface Log
public void switchTo(Class<?> destination)
destination
- the new log destinationpublic void switchTo(Log destination)
destination
- the new log destinationpublic void replayTo(Class<?> destination)
destination
- the destination for the deferred log messagespublic void replayTo(Log destination)
destination
- the destination for the deferred log messagespublic static Log replay(Log source, Class<?> destination)
source
- the source loggerdestination
- the destination logger classCopyright © 2019 Pivotal Software, Inc.. All rights reserved.