renamed 'devmode' to depreciateLogging. requires either NODE_ENV == 'development', NODE_ENV == undefined. Default log function (console.log) can be overidden