withLoggingLevel() — spring-boot Function Reference
Architecture documentation for the withLoggingLevel() function in ConditionEvaluationReportLoggingListenerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8f743f63_4dd3_98c9_8683_e30e6d9b715b["withLoggingLevel()"] 2a4ed21b_d350_7074_16b4_4fdc57d6fd52["withDebugLogging()"] 2a4ed21b_d350_7074_16b4_4fdc57d6fd52 -->|calls| 8f743f63_4dd3_98c9_8683_e30e6d9b715b 78ad1497_8886_91a2_1f03_c1c5e3d02a84["withInfoLogging()"] 78ad1497_8886_91a2_1f03_c1c5e3d02a84 -->|calls| 8f743f63_4dd3_98c9_8683_e30e6d9b715b f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] 8f743f63_4dd3_98c9_8683_e30e6d9b715b -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style 8f743f63_4dd3_98c9_8683_e30e6d9b715b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/logging/ConditionEvaluationReportLoggingListenerTests.java lines 117–128
private void withLoggingLevel(Level logLevel, Runnable runnable) {
Logger logger = ((LoggerContext) LoggerFactory.getILoggerFactory())
.getLogger(ConditionEvaluationReportLogger.class);
Level currentLevel = logger.getLevel();
logger.setLevel(logLevel);
try {
runnable.run();
}
finally {
logger.setLevel(currentLevel);
}
}
Domain
Subdomains
Calls
Called By
- withDebugLogging()
- withInfoLogging()
Source
Frequently Asked Questions
What does withLoggingLevel() do?
withLoggingLevel() is a function in the spring-boot codebase.
What does withLoggingLevel() call?
withLoggingLevel() calls 1 function(s): run.
What calls withLoggingLevel()?
withLoggingLevel() is called by 2 function(s): withDebugLogging, withInfoLogging.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free