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