question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sleuth overrides a user's logging.pattern.level when it's configured in bootstrap.yml

See original GitHub issue

Describe the bug Sleuth’s default logging.pattern.level should not apply when the user has configured their own, however it is taking precedence when the user has configured their own in bootstrap.yml. Please see https://github.com/spring-projects/spring-boot/issues/25418 for details. I’m not sure if this is a Sleuth problem or a more general Spring Cloud Commons problem.

Sample There’s a sample in the Spring Boot issue along with some initial analysis.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
marcingrzejszczakcommented, Mar 29, 2021

I’ve added a parameter spring.sleuth.default-logging-pattern-enabled which is turned on by default. By setting it to false the default Sleuth pattern will not be set.

0reactions
spicalouscommented, Aug 23, 2022

@marcingrzejszczak

I’ve raised a PR to reintroduce the configuration back https://github.com/spring-cloud/spring-cloud-sleuth/pull/2196

Please let me know your thoughts 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Cloud Sleuth
Minimum logging level to be presented in the console logs--> <level>DEBUG</level> </filter> ... set the spring.application.name property in bootstrap.yml .
Read more >
Sleuth is overriding logging.pattern.level configured in ...
I have started integrating Spring cloud Sleuth into our project to generate automatic trace-id and span-id. The project is built on Spring ...
Read more >
Add Spring Boot Profile to Sleuth/Zipkin logs - Stack Overflow
yml file, the above log-pattern just prints "bootstrap" as application name. You're mixing all possible patterns from what I see :P.
Read more >
Configure Spring Boot logging with application.yml
To set a different logging level for any logger, add in your application.yml file the log levels under the tree logging > level....
Read more >
spring-cloud-sleuth - Gitee
Other logging systems have to configure their own formatter to get the same result. The default is as follows: logging.pattern.level set to %5p...
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