Skip to content

Instantly share code, notes, and snippets.

@mrister
Last active May 21, 2017 20:21
Show Gist options
  • Save mrister/7305ff5d784efcb47a697a5869328911 to your computer and use it in GitHub Desktop.
Save mrister/7305ff5d784efcb47a697a5869328911 to your computer and use it in GitHub Desktop.
Creating a DevelopmentLogger class
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