I tried most of the modules listed in npm search, and had very little luck with any of them.
Luckily in the end, I stumbled across rconsole which I found was MUCH easier to configure and use than any of the others.
It's also nice that it allows you to colour and timestamp (and trace, etc) your stdout during development.
To use, simply npm i rconsole
, then, from the docs:
require('rconsole')
console.set({ facility: 'local0', title: 'basic' })
console.emerg('level 0')
console.alert('level 1')
console.crit('level 2')
console.error('level 3')
console.warn('level 4')
console.notice('level 5')
console.info('level 6')
console.log('level 6')
On OSX, I check my syslog using tail -f /var/log/system.log