console.log and node app.js > app.log work fine most of the time.
Sometimes, if I need to filter logs and stuff, I write them as json objects instead of plain files and create a very simple wrapper over console.log, but I've never had the need to do anything very elaborated.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
console.log
andnode app.js > app.log
work fine most of the time.Sometimes, if I need to filter logs and stuff, I write them as json objects instead of plain files and create a very simple wrapper over
console.log
, but I've never had the need to do anything very elaborated.