Next.js Boilerplate

Starter code for your Next.js blog Boilerplate with Tailwind CSS

Logs, metrics, and the moment you stop guessing

July 7, 2020

At some point every project outgrows console.log('here').

You deploy, something feels slow, a user reports a bug, and suddenly you realize:

“I have no idea what this thing is doing in production.”

This post is about that moment when you move from guessing
to actually observing your system.


Logs tell stories, not just strings

Good logs are not random messages.
They’re short stories your system writes about itself.

Example of a vague log vs a useful one:

Error

A bad log:

[WARN] Something went wrong