refactoring how the logger is require()'d and instantiated in app.js