Skip to main content

Logging in Spring Boot

Learn Logging in Spring Boot (Logging, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Business Requirement An application is deployed to a production server. A user reports that saving an employee failed. You cannot attach a debugger to production, you cannot reproduce the request, and the stack trace scrolled off somebody's terminal three days ago. The application must therefore record what it did, when, and with what data - so a defect can be diagnosed from the evidence it left behind. What a Logger Is A logger keeps a durable, timestamped record of what the application is doing. It is the only view you have into a running production system, and it is the difference between...

More lessons in Logging