LOGBACK: No context given for c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy
See original GitHub issuewhen I try to use spring boot default configuration to configure a rolling log files,logback show tips like title,so I view source(v2.2.6.RELEASE) to find the reason. in 150 lines of DefaultLogbackConfiguration.java,
private void setRollingPolicy(RollingFileAppender<ILoggingEvent> appender, LogbackConfigurator config,
String logFile) {
SizeAndTimeBasedRollingPolicy<ILoggingEvent> rollingPolicy = new SizeAndTimeBasedRollingPolicy<>();
...
rollingPolicy.setTotalSizeCap(new FileSize(totalSizeCap.toBytes()));
appender.setRollingPolicy(rollingPolicy);
...
}
when then rollingPolicy setRollingPolicy,logback show this tips,the tips info in 74 line of ContextAwareBase.java,the problem is not serious but very vexed, please repair it as soon as possible,thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:17 (5 by maintainers)
Top Results From Across the Web
spring boot - LOGBACK: No context given for c.q.l.core.rolling ...
I get it with spring boot application's latest version after I added: logging.file.name =src/main/resources/logs/spring advance.log to the ...
Read more >Spring-boot – LOGBACK: No context given for c.q.l.core.rolling ...
spring-bootspring-logback. I get the error on the title: LOGBACK: No context given for c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1162810564.
Read more >LOGBACK: No context given for c.q.l.core.rolling ...
Coding example for the question LOGBACK: No context given for c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1162810564-Springboot.
Read more >spring-projects/spring-boot - Gitter
LOGBACK : No context given for c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy this propably comes from logging.file.name - I set it via cmd args.
Read more >logback: no context given for c.q.l.core.rolling ... - 腾讯云
13.7 SpringBoot集成日志系统logback的几个问题问题1: Logging system failed to initialize using configuration from · SpringBoot集成logback.xml日志配置文件找不到 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can confirm this problem too.
Thanks everyone. We’ve already reproduced the problem and just need the time to fix it. In the meantime there’s no need to confirm that it occurs.