node.js console replacement, can log to stdout or syslog