- java.lang.Object
-
- org.springframework.boot.logging.LoggingSystem
-
- org.springframework.boot.logging.AbstractLoggingSystem
-
- org.springframework.boot.logging.Slf4JLoggingSystem
-
- org.springframework.boot.logging.log4j2.Log4J2LoggingSystem
-
- org.apache.logging.log4j.spring.boot.Log4j2CloudConfigLoggingSystem
-
public class Log4j2CloudConfigLoggingSystem
extends org.springframework.boot.logging.log4j2.Log4J2LoggingSystem
Override Spring's implementation of the Log4j 2 Logging System to properly support Spring Cloud Config.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.boot.logging.log4j2.Log4J2LoggingSystem
org.springframework.boot.logging.log4j2.Log4J2LoggingSystem.Factory
-
Nested classes/interfaces inherited from class org.springframework.boot.logging.AbstractLoggingSystem
org.springframework.boot.logging.AbstractLoggingSystem.LogLevels<T>
-
Field Summary
-
Fields inherited from class org.springframework.boot.logging.AbstractLoggingSystem
CONFIGURATION_COMPARATOR
-
Fields inherited from class org.springframework.boot.logging.LoggingSystem
NONE, ROOT_LOGGER_NAME, SYSTEM_PROPERTY
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
cleanUp() |
protected String[] |
getStandardConfigLocations() |
void |
initialize(org.springframework.boot.logging.LoggingInitializationContext initializationContext,
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(String location,
org.springframework.boot.logging.LogFile logFile) |
protected void |
loadDefaults(org.springframework.boot.logging.LoggingInitializationContext initializationContext,
org.springframework.boot.logging.LogFile logFile) |
-
Methods inherited from class org.springframework.boot.logging.log4j2.Log4J2LoggingSystem
beforeInitialize, getLoggerConfiguration, getLoggerConfigurations, getShutdownHandler, getSupportedLogLevels, isClassAvailable, loadConfiguration, reinitialize, setLogLevel
-
Methods inherited from class org.springframework.boot.logging.Slf4JLoggingSystem
isBridgeHandlerAvailable, isBridgeJulIntoSlf4j
-
Methods inherited from class org.springframework.boot.logging.AbstractLoggingSystem
applySystemProperties, getClassLoader, getPackagedConfigFile, getSelfInitializationConfig, getSpringConfigLocations, getSpringInitializationConfig
-
Methods inherited from class org.springframework.boot.logging.LoggingSystem
get, getSystemProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
initialize
public void initialize(org.springframework.boot.logging.LoggingInitializationContext initializationContext,
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. Spring will replace the ExternalContext field with a String once initialization is
complete.
- Overrides:
initialize
in class org.springframework.boot.logging.log4j2.Log4J2LoggingSystem
- Parameters:
initializationContext
- The initialization context.
configLocation
- The configuration location.
logFile
- the log file.
-
cleanUp
public void cleanUp()
- Overrides:
cleanUp
in class org.springframework.boot.logging.log4j2.Log4J2LoggingSystem
Copyright © 1999-1969 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.