convertLoggerConfig() — spring-boot Function Reference
Architecture documentation for the convertLoggerConfig() function in Log4J2LoggingSystem.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 940cdd25_25fa_a874_b39a_b9b8d250dcae["convertLoggerConfig()"] d550d4cf_eb41_f3ce_1214_c6ac3ad8550a["getLoggerConfigurations()"] d550d4cf_eb41_f3ce_1214_c6ac3ad8550a -->|calls| 940cdd25_25fa_a874_b39a_b9b8d250dcae fb23121a_77fd_71e7_b0aa_60a119cb606b["getLoggerConfiguration()"] fb23121a_77fd_71e7_b0aa_60a119cb606b -->|calls| 940cdd25_25fa_a874_b39a_b9b8d250dcae ddb63af6_5407_e146_30e8_5c5c2a072095["getLevelConfiguration()"] 940cdd25_25fa_a874_b39a_b9b8d250dcae -->|calls| ddb63af6_5407_e146_30e8_5c5c2a072095 24c0fbca_1c0a_587d_aae0_6001704c3181["getLevel()"] 940cdd25_25fa_a874_b39a_b9b8d250dcae -->|calls| 24c0fbca_1c0a_587d_aae0_6001704c3181 e19376dd_50cc_d749_9a96_43dc4f39358a["LoggerConfiguration()"] 940cdd25_25fa_a874_b39a_b9b8d250dcae -->|calls| e19376dd_50cc_d749_9a96_43dc4f39358a 5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"] 940cdd25_25fa_a874_b39a_b9b8d250dcae -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2 style 940cdd25_25fa_a874_b39a_b9b8d250dcae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java lines 429–440
private @Nullable LoggerConfiguration convertLoggerConfig(String name, @Nullable LoggerConfig loggerConfig) {
if (loggerConfig == null) {
return null;
}
LevelConfiguration effectiveLevelConfiguration = getLevelConfiguration(loggerConfig.getLevel());
if (!StringUtils.hasLength(name) || LogManager.ROOT_LOGGER_NAME.equals(name)) {
name = ROOT_LOGGER_NAME;
}
boolean isAssigned = loggerConfig.getName().equals(name);
LevelConfiguration assignedLevelConfiguration = (!isAssigned) ? null : effectiveLevelConfiguration;
return new LoggerConfiguration(name, assignedLevelConfiguration, effectiveLevelConfiguration);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does convertLoggerConfig() do?
convertLoggerConfig() is a function in the spring-boot codebase.
What does convertLoggerConfig() call?
convertLoggerConfig() calls 4 function(s): LoggerConfiguration, getLevel, getLevelConfiguration, getName.
What calls convertLoggerConfig()?
convertLoggerConfig() is called by 2 function(s): getLoggerConfiguration, getLoggerConfigurations.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free