Skip to content

Instantly share code, notes, and snippets.

@dwaligora
Created August 7, 2014 16:54
Show Gist options
  • Select an option

  • Save dwaligora/88690a93cce31447092b to your computer and use it in GitHub Desktop.

Select an option

Save dwaligora/88690a93cce31447092b to your computer and use it in GitHub Desktop.
object prototype exporting node
'use strict';
var appConfig = require('../../config');
var constants = require('../../lib/constants');
var log4js = require('log4js');
function Logger(config) {
this.config = config;
}
Logger.prototype = {
error: function() {
console.log('in error mth', this);
}
};
module.exports = new Logger(appConfig);
module.exports.Logger = Logger;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment