-var logDir = path.join(__dirname, '..', config.get('storage.logs'))
-var logger = new winston.Logger({
+const constants = require('../initializers/constants')
+
+const label = constants.CONFIG.WEBSERVER.HOSTNAME + ':' + constants.CONFIG.WEBSERVER.PORT
+
+// Create the directory if it does not exist
+mkdirp.sync(constants.CONFIG.STORAGE.LOG_DIR)
+
+const logger = new winston.Logger({