Created
May 12, 2014 06:45
-
-
Save theosp/863ff482cc9037a129c3 to your computer and use it in GitHub Desktop.
Log meteor output both to stdout and to the syslog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var log = function (message) { | |
console.log(message); | |
Npm.require('child_process').exec("logger " + message); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment