Spring Boot - LoggingWhich configuration file does Logback use by default in a Spring Boot project?Alogback.xmlBapplication.propertiesClog4j.propertiesDlogging.yamlCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall default Logback config fileLogback looks for a file named logback.xml in the classpath by default.Step 2: Differentiate from other config filesapplication.properties is for Spring Boot settings, log4j.properties is for Log4j, and logging.yaml is not a default Logback file.Final Answer:logback.xml -> Option AQuick Check:Default config file = D [OK]Quick Trick: Logback default config is logback.xml [OK]Common Mistakes:Confusing Spring Boot properties with Logback configMixing Logback with Log4j config filesAssuming YAML is default for Logback
Master "Logging" in Spring Boot9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Spring Boot Quizzes Exception Handling - Why centralized error handling matters - Quiz 12easy Inversion of Control and Dependency Injection - IoC container mental model - Quiz 3easy Inversion of Control and Dependency Injection - Constructor injection (preferred) - Quiz 5medium Logging - Why logging matters - Quiz 10hard REST Controllers - @PutMapping and @DeleteMapping - Quiz 5medium REST Controllers - @RequestBody for JSON input - Quiz 2easy Request and Response Handling - Request mapping by method and path - Quiz 8hard Request and Response Handling - Content type negotiation - Quiz 9hard Spring Boot Fundamentals - What is Spring Boot - Quiz 3easy Spring Boot Fundamentals - POM.xml and dependencies - Quiz 1easy