Bird
0
0

You set logging.level.com.example=DEBUG in application.properties, but DEBUG messages from com.example.service do not appear. What is the most likely cause?

medium📝 Debug Q14 of 15
Spring Boot - Logging
You set logging.level.com.example=DEBUG in application.properties, but DEBUG messages from com.example.service do not appear. What is the most likely cause?
ADEBUG level is not supported in Spring Boot
BThe root log level is set higher than DEBUG, blocking DEBUG logs
CThe package name is misspelled in the property
DYou must restart the application to apply log level changes
Step-by-Step Solution
Solution:
  1. Step 1: Check property correctness

    If the package name is misspelled, the setting won't apply to the intended classes.
  2. Step 2: Evaluate other options

    DEBUG is supported; root level does not block specific package settings; restart is usually required but not the main cause.
  3. Final Answer:

    The package name is misspelled in the property -> Option C
  4. Quick Check:

    Correct package name is critical for log level settings [OK]
Quick Trick: Check package spelling carefully in logging properties [OK]
Common Mistakes:
  • Assuming root level overrides package level always
  • Believing DEBUG is unsupported
  • Ignoring typos in package names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes