Bird
0
0

Which of the following is the correct way to set the logging level for the package com.example to DEBUG in application.properties?

easy📝 Conceptual Q2 of 15
Spring Boot - Application Configuration
Which of the following is the correct way to set the logging level for the package com.example to DEBUG in application.properties?
Alog.level.com.example=DEBUG
Blogging.level=com.example:DEBUG
Clogging.com.example.level=DEBUG
Dlogging.level.com.example=DEBUG
Step-by-Step Solution
Solution:
  1. Step 1: Recall logging level property format

    Spring Boot uses logging.level.[package]=[level] format.
  2. Step 2: Identify correct option matching format

    logging.level.com.example=DEBUG matches exactly: logging.level.com.example=DEBUG.
  3. Final Answer:

    logging.level.com.example=DEBUG -> Option D
  4. Quick Check:

    Logging level syntax = logging.level.package=LEVEL [OK]
Quick Trick: Use logging.level.package=LEVEL format [OK]
Common Mistakes:
  • Swapping order of package and level
  • Using 'log' instead of 'logging'
  • Using colon instead of equals sign

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes