类 Slf4JLoggingSystem
- java.lang.Object
- org.springframework.boot.logging.LoggingSystem
- org.springframework.boot.logging.AbstractLoggingSystem
- org.springframework.boot.logging.Slf4JLoggingSystem
public abstract class Slf4JLoggingSystem extends AbstractLoggingSystem
Abstract base class forLoggingSystem
implementations that utilize SLF4J.- 从以下版本开始:
- 1.2.0
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.logging.AbstractLoggingSystem
AbstractLoggingSystem.LogLevels<T>
字段概要
从类继承的字段 org.springframework.boot.logging.AbstractLoggingSystem
CONFIGURATION_COMPARATOR
从类继承的字段 org.springframework.boot.logging.LoggingSystem
NONE, ROOT_LOGGER_NAME, SYSTEM_PROPERTY
构造器概要
构造器 构造器 说明 Slf4JLoggingSystem(ClassLoader classLoader)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
beforeInitialize()
Reset the logging system to be limit output.void
cleanUp()
Clean up the logging system.protected boolean
isBridgeHandlerAvailable()
protected boolean
isBridgeJulIntoSlf4j()
Return whether bridging JUL into SLF4J or not.protected void
loadConfiguration(LoggingInitializationContext initializationContext, String location, LogFile logFile)
Load a specific configuration.从类继承的方法 org.springframework.boot.logging.AbstractLoggingSystem
applySystemProperties, getClassLoader, getPackagedConfigFile, getSelfInitializationConfig, getSpringConfigLocations, getSpringInitializationConfig, getStandardConfigLocations, initialize, loadDefaults, reinitialize
从类继承的方法 org.springframework.boot.logging.LoggingSystem
get, getLoggerConfiguration, getLoggerConfigurations, getShutdownHandler, getSupportedLogLevels, setLogLevel
构造器详细资料
Slf4JLoggingSystem
public Slf4JLoggingSystem(ClassLoader classLoader)
方法详细资料
beforeInitialize
public void beforeInitialize()
从类复制的说明:LoggingSystem
Reset the logging system to be limit output. This method may be called beforeLoggingSystem.initialize(LoggingInitializationContext, String, LogFile)
to reduce logging noise until the system has been fully initialized.
cleanUp
public void cleanUp()
从类复制的说明:LoggingSystem
Clean up the logging system. The default implementation does nothing. Subclasses should override this method to perform any logging system-specific cleanup.- 覆盖:
cleanUp
在类中LoggingSystem
loadConfiguration
protected void loadConfiguration(LoggingInitializationContext initializationContext, String location, LogFile logFile)
从类复制的说明:AbstractLoggingSystem
Load a specific configuration.- 指定者:
loadConfiguration
在类中AbstractLoggingSystem
- 参数:
initializationContext
- the logging initialization contextlocation
- the location of the configuration to load (nevernull
)logFile
- the file to load ornull
if no log file is to be written
isBridgeJulIntoSlf4j
protected final boolean isBridgeJulIntoSlf4j()
Return whether bridging JUL into SLF4J or not.- 返回:
- whether bridging JUL into SLF4J or not
- 从以下版本开始:
- 2.0.4
isBridgeHandlerAvailable
protected final boolean isBridgeHandlerAvailable()