setRollingPolicy() — spring-boot Function Reference
Architecture documentation for the setRollingPolicy() function in DefaultLogbackConfiguration.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 5a0dab51_3d7a_5dee_f9bf_2a111d079fce["setRollingPolicy()"] 31c60606_83c6_5f2b_7475_ce30de6e8b98["fileAppender()"] 31c60606_83c6_5f2b_7475_ce30de6e8b98 -->|calls| 5a0dab51_3d7a_5dee_f9bf_2a111d079fce f3920fbc_f4c3_d989_8f18_8d90dc85e575["resolve()"] 5a0dab51_3d7a_5dee_f9bf_2a111d079fce -->|calls| f3920fbc_f4c3_d989_8f18_8d90dc85e575 96f88e1f_cdac_5f1b_8801_06f85a116e2e["resolveBoolean()"] 5a0dab51_3d7a_5dee_f9bf_2a111d079fce -->|calls| 96f88e1f_cdac_5f1b_8801_06f85a116e2e 13cf3a31_98cc_dc6c_f1bd_f42ba61dd518["resolveFileSize()"] 5a0dab51_3d7a_5dee_f9bf_2a111d079fce -->|calls| 13cf3a31_98cc_dc6c_f1bd_f42ba61dd518 31c22b9e_0214_ff60_5405_47db735e97ed["resolveInt()"] 5a0dab51_3d7a_5dee_f9bf_2a111d079fce -->|calls| 31c22b9e_0214_ff60_5405_47db735e97ed style 5a0dab51_3d7a_5dee_f9bf_2a111d079fce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java lines 191–204
private void setRollingPolicy(RollingFileAppender<ILoggingEvent> appender, LogbackConfigurator config) {
SizeAndTimeBasedRollingPolicy<ILoggingEvent> rollingPolicy = new SizeAndTimeBasedRollingPolicy<>();
rollingPolicy.setContext(config.getContext());
rollingPolicy.setFileNamePattern(
resolve(config, "${LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN:-${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz}"));
rollingPolicy
.setCleanHistoryOnStart(resolveBoolean(config, "${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}"));
rollingPolicy.setMaxFileSize(resolveFileSize(config, "${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB}"));
rollingPolicy.setTotalSizeCap(resolveFileSize(config, "${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0}"));
rollingPolicy.setMaxHistory(resolveInt(config, "${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-7}"));
appender.setRollingPolicy(rollingPolicy);
rollingPolicy.setParent(appender);
config.start(rollingPolicy);
}
Domain
Subdomains
Calls
- resolve()
- resolveBoolean()
- resolveFileSize()
- resolveInt()
Called By
Source
Frequently Asked Questions
What does setRollingPolicy() do?
setRollingPolicy() is a function in the spring-boot codebase.
What does setRollingPolicy() call?
setRollingPolicy() calls 4 function(s): resolve, resolveBoolean, resolveFileSize, resolveInt.
What calls setRollingPolicy()?
setRollingPolicy() is called by 1 function(s): fileAppender.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free