Removing logs is also part of the job

An often forgotten reflex

Adding logs is a basic debugging reflex. Removing them is much less common.

Yet, obsolete logs can become just as harmful as bad ones.

The hidden cost of useless logs

Every useless log adds a bit of cognitive load. Individually, it feels negligible. Accumulated, it is not.

Reading slows down, errors hide more easily.

Removing is clarifying

  • code becomes easier to read
  • the console makes sense again
  • debugging becomes faster

A habit to build

As discussed in the previous article, noise often comes from accumulation.

Removing logs is part of the same movement as simplifying code 🙂