Why System.out is not logging
On This Lesson 4 topics
The content for this lesson is written and waiting for review. The outline below shows what it covers. It will be published once it is approved.
In this lesson
see what println cannot do.
Planned topics
printlnhas no time, no level, and no source class.- You cannot turn it off or filter it without editing code.
- It goes to one place only: the console.
- Real logging adds timestamps, levels, files, and rotation.
- A logging library lets operations change the output without changing the code.
Draft outline details
Demonstration
System.out.println("saved") next to 2025-01-10 10:15:02 INFO OrderService - Order 42 saved.
Check your understanding
Name two things a log line has that println lacks.
Show answer
For example time and level.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.