LOGBACK: No context given for c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy

See original GitHub issue

when 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
Drezircommented, Apr 22, 2020

I can confirm this problem too.

2reactions
wilkinsonacommented, Jun 18, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found