Monday 5 June 2017

Output Node.js logs to filesystem

I have a Splunk forwarder managing logs in my production servers, so I really just need to get the output of my node app into a file that Splunk is watching. What is the downside of simply doing the following in production:

node server.js > output.log

As oppose to handling the log output inside the node process with some sort of logging module...



via m-a-r-c-e-l-i-n-o

No comments:

Post a Comment