Created
August 7, 2014 16:54
-
-
Save dwaligora/88690a93cce31447092b to your computer and use it in GitHub Desktop.
object prototype exporting node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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