var config  = require("../config.json");

/*****************************************************************************\
    Return a set of functions which we can use to log to console
\*****************************************************************************/
module.exports = function() {
    _error = function(message) {
      console.log(config.logger.message + "ERROR: " + message);
    };
    
    _warn = function(message) {
      console.log(config.logger.message + "WARNING: " + message);
    };

    _info = function(message) {
      console.log(config.logger.message + "INFO: " + message);
    };

    _success = function(message) {
      console.log(config.logger.message + "SUCCESS: " + message);
    };

    return {
        error:    _error,
        warn:     _warn,
        info:     _info,
        success:  _success,
    };
}

var config  = require("../config.json");

/*****************************************************************************\
    Return a set of functions which we can use to log to console
\*****************************************************************************/
module.exports = function() {
    _error = function(message) {
      console.log(config.logger.message + "ERROR:\t" + message);
    };
    
    _warn = function(message) {
      console.log(config.logger.message + "WARNING:\t" + message);
    };

    _info = function(message) {
      console.log(config.logger.message + "INFO:\t\t" + message);
    };

    _success = function(message) {
      console.log(config.logger.message + "SUCCESS:\t" + message);
    };

    return {
        error:    _error,
        warn:     _warn,
        info:     _info,
        success:  _success,
    };
}

Update logger.js