Created
February 6, 2012 00:26
-
-
Save lazywithclass/1748552 to your computer and use it in GitHub Desktop.
Logging in nodejs
This file contains 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
//I've launched my app as so: NODE_ENV=development nodemon server.js | |
var Log = new require("log"), | |
log = new Log(process.env.NODE_ENV === "production" && | |
"error" || "debug"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment