Skip to content

Instantly share code, notes, and snippets.

@davidgilbertson
Created September 7, 2015 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidgilbertson/7993ee782118ed9fe056 to your computer and use it in GitHub Desktop.
Save davidgilbertson/7993ee782118ed9fe056 to your computer and use it in GitHub Desktop.
Using the log util and setting the namespace
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