What are your logs for?

July 23, 2022
Who will be reading them? For what purpose?

When you’re writing code that generates logs, do you think about why?

Who will be reading these logs? Why will they be reading them? What questions will they be wanting to answer by reading these logs?

Share this

Related Content

Debug logs are a code smell

Most debug logs are cruft, left over from a long-forgotten debugging session.

Two kinds of errors

Users shouldn't see stack traces. Devs shouldn't see JSON parsing errors. Send the right error to the right place.

6 ways to RUIN your logging