getLoggerContext() — spring-boot Function Reference
Architecture documentation for the getLoggerContext() function in LogbackLoggingSystem.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 38e995b4_1ef1_6922_5bd2_636797effcbc["getLoggerContext()"] 4a698093_93ee_c54a_b5a5_6ded488dd2e6["beforeInitialize()"] 4a698093_93ee_c54a_b5a5_6ded488dd2e6 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 905673dd_fe29_aaa8_a054_09cf6678c1d0["initialize()"] 905673dd_fe29_aaa8_a054_09cf6678c1d0 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 7d5d754c_bca4_3cde_00f3_cbf533d9a055["initializeFromAotGeneratedArtifactsIfPossible()"] 7d5d754c_bca4_3cde_00f3_cbf533d9a055 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 647ef14c_5da4_24a4_ddac_0beb0e1b96f5["loadDefaults()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc cafc9a8c_e23a_b8c4_5c44_2f02f0d89617["loadConfiguration()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc b6802fea_a8be_6703_64a1_4682074b029d["cleanUp()"] b6802fea_a8be_6703_64a1_4682074b029d -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 6b2b0aa1_585b_b5a9_e61a_bb68da10b08b["reinitialize()"] 6b2b0aa1_585b_b5a9_e61a_bb68da10b08b -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc c9d1be2c_028c_bff0_87fd_d0bc5580e40b["getLoggerConfigurations()"] c9d1be2c_028c_bff0_87fd_d0bc5580e40b -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc fbf63d90_29ae_d068_0560_fed7baba80bc["getLoggerConfiguration()"] fbf63d90_29ae_d068_0560_fed7baba80bc -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 0ad4314d_1dee_ea6e_8fe1_a72eadb3c088["getShutdownHandler()"] 0ad4314d_1dee_ea6e_8fe1_a72eadb3c088 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 2babc4f7_d634_4f0b_aef1_7095b8a47c5f["getLogger()"] 2babc4f7_d634_4f0b_aef1_7095b8a47c5f -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 6a543648_0ba8_c788_9c44_77ba7c28f727["processAheadOfTime()"] 6a543648_0ba8_c788_9c44_77ba7c28f727 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 05d574bb_2449_135b_2a57_ca01664538a0["withLoggingSuppressed()"] 05d574bb_2449_135b_2a57_ca01664538a0 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc e79023c1_6148_c604_924c_c0185520db89["getLoggerFactory()"] 38e995b4_1ef1_6922_5bd2_636797effcbc -->|calls| e79023c1_6148_c604_924c_c0185520db89 style 38e995b4_1ef1_6922_5bd2_636797effcbc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java lines 418–429
private LoggerContext getLoggerContext() {
ILoggerFactory factory = getLoggerFactory();
Assert.state(factory instanceof LoggerContext,
() -> String.format(
"LoggerFactory is not a Logback LoggerContext but Logback is on "
+ "the classpath. Either remove Logback or the competing "
+ "implementation (%s loaded from %s). If you are using "
+ "WebLogic you will need to add 'org.slf4j' to "
+ "prefer-application-packages in WEB-INF/weblogic.xml",
factory.getClass(), getLocation(factory)));
return (LoggerContext) factory;
}
Domain
Subdomains
Calls
- getLocation()
- getLoggerFactory()
Called By
Source
Frequently Asked Questions
What does getLoggerContext() do?
getLoggerContext() is a function in the spring-boot codebase.
What does getLoggerContext() call?
getLoggerContext() calls 2 function(s): getLocation, getLoggerFactory.
What calls getLoggerContext()?
getLoggerContext() is called by 13 function(s): beforeInitialize, cleanUp, getLogger, getLoggerConfiguration, getLoggerConfigurations, getShutdownHandler, initialize, initializeFromAotGeneratedArtifactsIfPossible, and 5 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free