Last active
May 21, 2017 20:21
-
-
Save mrister/7305ff5d784efcb47a697a5869328911 to your computer and use it in GitHub Desktop.
Creating a DevelopmentLogger class
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
class DevelopmentLogger { | |
constructor(options) { | |
this.log = options.log.child({environment: 'development'}); | |
} | |
logIt(message) { | |
this.log.info(message) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment