Simple tool to limit log output. It's configuration is compatible with visionmedia/debug.
var debug = 'mything';;
DEBUG environment variable used to enable logging. Give it space- or comma-separated names.
$ DEBUG=mything node myappdoing something usefuldoing something usefuldoing something useful
var debug = ;debugworking = ;debugwaiting = ;;
Turn on only the
$ DEBUG=waiting node myapppausing for 1spausing for 1s
Turn on both.
$ DEBUG=waiting,working node myappdoing something usefulpausing for 1sdoing something usefulpausing for 1s
Send output through
console.err instead of
var debug = 'mything';debuglog = consoleerror;;
MIT. The core functions were extracted from debug. See LICENSE for details.