Skip to content

Instantly share code, notes, and snippets.

@lazywithclass
Created February 6, 2012 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazywithclass/1748552 to your computer and use it in GitHub Desktop.
Save lazywithclass/1748552 to your computer and use it in GitHub Desktop.
Logging in nodejs
//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