Bird
0
0

You see no logs appearing in your Spring Boot console even though you added logger.info("Starting app");. What is the most likely cause?

medium📝 Troubleshoot Q14 of 15
Spring Boot - Logging
You see no logs appearing in your Spring Boot console even though you added logger.info("Starting app");. What is the most likely cause?
AThe log level is set higher than INFO, so info messages are hidden.
BThe logger.info() method is misspelled.
CSpring Boot does not support logging by default.
DThe application has no internet connection.
Step-by-Step Solution
Solution:
  1. Step 1: Check log level configuration

    If the log level is set to WARN or ERROR, info messages will not show in the console.
  2. Step 2: Rule out other causes

    Logger method spelling is correct, Spring Boot supports logging by default, and internet connection does not affect logging.
  3. Final Answer:

    The log level is set higher than INFO, so info messages are hidden. -> Option A
  4. Quick Check:

    Log level hides lower severity logs [OK]
Quick Trick: Check log level if logs don't appear [OK]
Common Mistakes:
  • Assuming logging needs extra setup always
  • Blaming internet connection for logging issues
  • Ignoring log level settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes