DEV Community

Jan Küster 🔥
Jan Küster 🔥

Posted on

Where do you log your errors?

I personally feel intimidated by the choice of where to log my errors. Mostly, because I have many options and few information about the pros and cons of these:

  • console
  • process.stderr
  • logger
  • database
  • logfile
  • combinations of the above?
  • ... what else?

Also - why? How do you profit from the approach you use?

Top comments (1)

Collapse
 
dikamilo profile image
dikamilo

console in dev, sentry in production

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay