Skip to content
Ameen Abozaid
In reviewJNR-006-L03

Choosing log levels

  • Lesson 3 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

pick the right level.

Planned topics

  • ERROR: something failed and needs attention.
  • WARN: odd, but the system carried on.
  • INFO: important business events, such as "order placed".
  • DEBUG: details for developers; usually off in production.
  • TRACE: very fine detail. Do not use ERROR for expected cases, like a user typing a wrong password.
Draft outline details

Demonstration

a table: situation / level (payment declined: WARN; database down: ERROR; order placed: INFO).

Check your understanding

Level for "user not found, as expected"?

Show answer

Not ERROR; INFO or DEBUG.

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.