Member-only story

Make Server Logs Fun Again

Everyone hates server logs. Well, maybe not everyone. But you know what I mean. We often go to them when there is an error. And the process of finding an error code among the web of HTTP requests can be a nightmare. Is there a better way?

Ghost Together
7 min readMar 27, 2020

(I blurred out visitor’s IP addresses to protect their privacy!)

I wanted to write this article as postmortem to server logs. I don’t want to have to deal with them anymore beyond the current setup explained here.

I recently got into PM2 which is a Node instance manager. As you may know running node index.js works okay for small projects and local environments. But it is never recommended to run your production server in this way.

(You will eventually get the Broken Pipe error if you leave it running for too long with default settings…or your ISP disconnects, another SSH client logs in to the server or your system shuts down due to a lightning strike! Can happen.)

--

--

Ghost Together
Ghost Together

Written by Ghost Together

Ghost Together @ https://semicolon.dev is an alternative to Twitter. Sign up to meet other makers of things.

Responses (1)