类 DeferredLog
- java.lang.Object
- org.springframework.boot.logging.DeferredLog
- 所有已实现的接口:
org.apache.commons.logging.Log
public class DeferredLog extends Object implements org.apache.commons.logging.Log
DeferredLog
that can be used to store messages that shouldn't be written until the logging system is fully initialized.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 DeferredLog()
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 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 org.apache.commons.logging.Log
replay(org.apache.commons.logging.Log source, Class<?> destination)
Replay from a source log to a destination log when the source is deferred.static org.apache.commons.logging.Log
replay(org.apache.commons.logging.Log source, org.apache.commons.logging.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(org.apache.commons.logging.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(org.apache.commons.logging.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)
构造器详细资料
DeferredLog
public DeferredLog()
方法详细资料
isTraceEnabled
public boolean isTraceEnabled()
- 指定者:
isTraceEnabled
在接口中org.apache.commons.logging.Log
isDebugEnabled
public boolean isDebugEnabled()
- 指定者:
isDebugEnabled
在接口中org.apache.commons.logging.Log
isInfoEnabled
public boolean isInfoEnabled()
- 指定者:
isInfoEnabled
在接口中org.apache.commons.logging.Log
isWarnEnabled
public boolean isWarnEnabled()
- 指定者:
isWarnEnabled
在接口中org.apache.commons.logging.Log
isErrorEnabled
public boolean isErrorEnabled()
- 指定者:
isErrorEnabled
在接口中org.apache.commons.logging.Log
isFatalEnabled
public boolean isFatalEnabled()
- 指定者:
isFatalEnabled
在接口中org.apache.commons.logging.Log
switchTo
public void switchTo(Class<?> destination)
Switch from deferred logging to immediate logging to the specified destination.- 参数:
destination
- the new log destination- 从以下版本开始:
- 2.1.0
switchTo
public void switchTo(org.apache.commons.logging.Log destination)
Switch from deferred logging to immediate logging to the specified destination.- 参数:
destination
- the new log destination- 从以下版本开始:
- 2.1.0
replayTo
public void replayTo(Class<?> destination)
Replay deferred logging to the specified destination.- 参数:
destination
- the destination for the deferred log messages
replayTo
public void replayTo(org.apache.commons.logging.Log destination)
Replay deferred logging to the specified destination.- 参数:
destination
- the destination for the deferred log messages
replay
public static org.apache.commons.logging.Log replay(org.apache.commons.logging.Log source, Class<?> destination)
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
public static org.apache.commons.logging.Log replay(org.apache.commons.logging.Log source, org.apache.commons.logging.Log destination)
Replay from a source log to a destination log when the source is deferred.- 参数:
source
- the source loggerdestination
- the destination logger- 返回:
- the destination