Created
September 7, 2015 10:54
-
-
Save davidgilbertson/7993ee782118ed9fe056 to your computer and use it in GitHub Desktop.
Using the log util and setting the namespace
This file contains 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
const log = require('../utils/log.js')('server:routes'); | |
log.info('Something wonderful has happened.'); | |
// "server:routes > Something wonderful has happened" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment