-
Couldn't load subscription status.
- Fork 38.8k
Description
Rossen Stoyanchev opened SPR-16946 and commented
This started in Spring Boot #902, then #21437, and I'm opening this general ticket to revisit logging for development purposes more broadly, at the container level and any other module.
The general idea is that logging at DEBUG level should be user-friendly and carefully calibrated to be minimal, yet helpful by including the most relevant bits of information that are useful over and over again (vs debugging a specific issue). That means being relatively Spartan at DEBUG level, and showing more at TRACE as two tiers of debugging information.
Often it is difficult to know in isolation if a piece of information is useful, if it is duplicated, if it adds too much noise, or if it reads well. It's only possible to spot the issues and decide what looks best by viewing the overall logging.
I'll append some specific examples of core logging related to web startup, but a general review would probably be needed.
Affects: 5.0.7
Sub-tasks:
- Fine-tune logging for web requests [SPR-16898] #21437 Fine-tune logging for web requests
- Create wiki page on debug/trace logging [SPR-16954] #21492 Create wiki page on debug/trace logging
- Add correlation id to log messages in WebFlux [SPR-16966] #21504 Add correlation id to log messages in WebFlux
- Single category for all WebFlux logging [SPR-17012] #21550 Single category for all WebFlux logging
- Provide control over logging of potentially sensitive request details [SPR-17029] #21567 Provide control over logging of potentially sensitive request details
- Add sections on logging in WebFlux and Spring MVC docs [SPR-17032] #21570 Add sections on logging in WebFlux and Spring MVC docs
Issue Links:
- Change logging level to info in PropertiesLoaderSupport when logging message that resource is not found and ignoreResourceNotFound is true [SPR-7772] #12428 Change logging level to info in PropertiesLoaderSupport when logging message that resource is not found and ignoreResourceNotFound is true ("is duplicated by")
- Fine-tune logging for web requests [SPR-16898] #21437 Fine-tune logging for web requests
- Improve/unify debug logging at BeanDefinitionReader and BeanFactory level [SPR-17090] #21627 Improve/unify debug logging at BeanDefinitionReader and BeanFactory level