类 DeferredLog
java.lang.Object
org.springframework.boot.logging.DeferredLog
- 所有已实现的接口:
Log
Deferred
Log
that can be used to store messages that shouldn't be written until
the logging system is fully initialized.- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
void
void
void
void
void
void
void
boolean
boolean
boolean
boolean
boolean
boolean
static Log
Replay from a source log to a destination log when the source is deferred.static Log
Replay from a source log to a destination log when the source is deferred.void
Replay deferred logging to the specified destination.void
Replay deferred logging to the specified destination.void
Switch from deferred logging to immediate logging to the specified destination.void
Switch from deferred logging to immediate logging to the specified destination.void
void
void
void
-
构造器详细资料
-
DeferredLog
public DeferredLog()Create a newDeferredLog
instance.
-
-
方法详细资料
-
isTraceEnabled
public boolean isTraceEnabled()- 指定者:
isTraceEnabled
在接口中Log
-
isDebugEnabled
public boolean isDebugEnabled()- 指定者:
isDebugEnabled
在接口中Log
-
isInfoEnabled
public boolean isInfoEnabled()- 指定者:
isInfoEnabled
在接口中Log
-
isWarnEnabled
public boolean isWarnEnabled()- 指定者:
isWarnEnabled
在接口中Log
-
isErrorEnabled
public boolean isErrorEnabled()- 指定者:
isErrorEnabled
在接口中Log
-
isFatalEnabled
public boolean isFatalEnabled()- 指定者:
isFatalEnabled
在接口中Log
-
trace
-
trace
-
debug
-
debug
-
info
-
info
-
warn
-
warn
-
error
-
error
-
fatal
-
fatal
-
switchTo
Switch from deferred logging to immediate logging to the specified destination.- 参数:
destination
- the new log destination- 从以下版本开始:
- 2.1.0
-
switchTo
Switch from deferred logging to immediate logging to the specified destination.- 参数:
destination
- the new log destination- 从以下版本开始:
- 2.1.0
-
replayTo
Replay deferred logging to the specified destination.- 参数:
destination
- the destination for the deferred log messages
-
replayTo
Replay deferred logging to the specified destination.- 参数:
destination
- the destination for the deferred log messages
-
replay
Replay from a source log to a destination log when the source is deferred.- 参数:
source
- the source loggerdestination
- the destination logger class- 返回:
- the destination
-
replay
Replay from a source log to a destination log when the source is deferred.- 参数:
source
- the source loggerdestination
- the destination logger- 返回:
- the destination
-