Seeing server errors without starting meteor in shell / Overwriting serverside console.log()?


#1

I’m running Meteor on my Linux server. I’m using Supervisor to make sure Meteor is always running in case of crashes/reboots etc. but since I don’t start Meteor through the shell I don’t get the console messages. Is there a way to solve this? Maybe a shell command or Meteor package?

I’ve already made a server log collection+template that parses json to html and that I can log stuff to. I thought maybe I could overwrite console.log on the serverside with a function that puts it into the log collection, but doing that just crashes Meteor.

Edit: Just realized another option could be a program that can read the logs of Supervisor in realtime, as all child process output gets stored there. Investigating…