Skip to content

Instantly share code, notes, and snippets.

@kieran
Created May 5, 2010 23:01
Show Gist options
  • Save kieran/391573 to your computer and use it in GitHub Desktop.
Save kieran/391573 to your computer and use it in GitHub Desktop.
var profiles = {
production: {
logFile: function(){ config.logFile || false },
debug: false,
info: false,
warn: false,
fatal: true
},
development: {
logFile: function(){ config.logFile || false },
debug: true,
info: true,
warn: true,
fatal: true
}
}
// accessing:
file = [process.cwd(),profiles[config.environment]['logFile']].join('/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment