Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.