spring-projects / spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
https://spring.io/projects/spring-boot
Apache License 2.0
75.31k stars 40.71k forks source link

Documentation: Logback configuration snippet wrong. #43244

Closed Mettbrot closed 21 hours ago

Mettbrot commented 22 hours ago

The documentation for configuring logback with spring boot defaults has a typo:

https://docs.spring.io/spring-boot/docs/2.1.8.RELEASE/reference/html/howto-logging.html#howto-configure-logback-for-logging

The correct XML is defaultS.xml.

nosan commented 21 hours ago

@Mettbrot It has already been fixed. https://docs.spring.io/spring-boot/how-to/logging.html#howto.logging.logback

wilkinsona commented 21 hours ago

Duplicates https://github.com/spring-projects/spring-boot/pull/18295.

Mettbrot commented 18 hours ago

The real question would be: Why do I land on the docu for 2.1.8 when I google something like https://www.google.com/search?client=firefox-b-e&q=spring+boot+logging+config+logback

Is there anything we can do about that?

wilkinsona commented 18 hours ago

Not much, unfortunately. The new docs should improve search engine rankings and it does appear to be having an effect. For example, https://docs.spring.io/spring-boot/how-to/logging.html is the second result for me with Google and the first result with DuckDuckGo.