public class Log4j2CloudConfigLoggingSystem
extends org.springframework.boot.logging.log4j2.Log4J2LoggingSystem
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Log4j2CloudConfigLoggingSystem.Factory |
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ENVIRONMENT_KEY |
|
static java.lang.String |
LOG4J2_DISABLE_CLOUD_CONFIG_LOGGING_SYSTEM |
Property that disables the usage of this
LoggingSystem. |
| Constructor | Description |
|---|---|
Log4j2CloudConfigLoggingSystem(java.lang.ClassLoader loader) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cleanUp() |
|
protected java.lang.String[] |
getStandardConfigLocations() |
|
void |
initialize(org.springframework.boot.logging.LoggingInitializationContext initializationContext,
java.lang.String configLocation,
org.springframework.boot.logging.LogFile logFile) |
Set the environment into the ExternalContext field so that it can be obtained by SpringLookup when it
is constructed.
|
protected void |
loadConfiguration(java.lang.String location,
org.springframework.boot.logging.LogFile logFile) |
This method is removed from Spring in 3.x and is scheduled to be removed in 2.8.x.
|
protected void |
loadConfiguration(java.lang.String location,
org.springframework.boot.logging.LogFile logFile,
java.util.List<java.lang.String> overrides) |
Added in Spring 2.6.0, the overrides parameter allows override files to be specified in the
"logging.log4j2.config.override" property.
|
protected void |
loadDefaults(org.springframework.boot.logging.LoggingInitializationContext initializationContext,
org.springframework.boot.logging.LogFile logFile) |
applySystemProperties, getClassLoader, getPackagedConfigFile, getSelfInitializationConfig, getSpringConfigLocations, getSpringInitializationConfigbeforeInitialize, getLoggerConfiguration, getLoggerConfigurations, getShutdownHandler, getSupportedLogLevels, isClassAvailable, loadConfiguration, reinitialize, setLogLevelget, getSystemPropertiespublic static final java.lang.String LOG4J2_DISABLE_CLOUD_CONFIG_LOGGING_SYSTEM
LoggingSystem.public static final java.lang.String ENVIRONMENT_KEY
public Log4j2CloudConfigLoggingSystem(java.lang.ClassLoader loader)
public void initialize(org.springframework.boot.logging.LoggingInitializationContext initializationContext,
java.lang.String configLocation,
org.springframework.boot.logging.LogFile logFile)
initialize in class org.springframework.boot.logging.log4j2.Log4J2LoggingSysteminitializationContext - The initialization context.configLocation - The configuration location.logFile - the log file.protected java.lang.String[] getStandardConfigLocations()
getStandardConfigLocations in class org.springframework.boot.logging.log4j2.Log4J2LoggingSystemprotected void loadDefaults(org.springframework.boot.logging.LoggingInitializationContext initializationContext,
org.springframework.boot.logging.LogFile logFile)
loadDefaults in class org.springframework.boot.logging.log4j2.Log4J2LoggingSystemprotected void loadConfiguration(java.lang.String location,
org.springframework.boot.logging.LogFile logFile)
loadConfiguration in class org.springframework.boot.logging.log4j2.Log4J2LoggingSystemlocation - the locationlogFile - log file configurationprotected void loadConfiguration(java.lang.String location,
org.springframework.boot.logging.LogFile logFile,
java.util.List<java.lang.String> overrides)
loadConfiguration in class org.springframework.boot.logging.log4j2.Log4J2LoggingSystemlocation - The location of the primary configuration.logFile - log file configuration.overrides - Any override files.public void cleanUp()
cleanUp in class org.springframework.boot.logging.log4j2.Log4J2LoggingSystemCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.