Bird
0
0

Which of the following is the correct way to set the log level to INFO in application.properties for Spring Boot?

easy📝 Syntax Q3 of 15
Spring Boot - Logging
Which of the following is the correct way to set the log level to INFO in application.properties for Spring Boot?
Alogging.level=INFO
Blogging.level.root=INFO
Clog.level=INFO
Dlog.root.level=INFO
Step-by-Step Solution
Solution:
  1. Step 1: Recall Spring Boot logging property syntax

    The correct property to set root log level is logging.level.root.
  2. Step 2: Match the correct syntax

    logging.level.root=INFO uses logging.level.root=INFO, which is correct.
  3. Final Answer:

    logging.level.root=INFO -> Option B
  4. Quick Check:

    Set root log level with logging.level.root [OK]
Quick Trick: Use logging.level.root to set global log level [OK]
Common Mistakes:
  • Using log.level instead of logging.level.root
  • Missing .root in property
  • Using incorrect property names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes