Skip to content
Ameen Abozaid
In reviewJNR-006-L01

Why System.out is not logging

  • Lesson 1 of 7
  • 11 min read
  • Junior
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

  • println has 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.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.