A drop-in replacement for debug, for slightly more utility.
var dbug = 'foo:bar';; // except goes to stdout, not stderr;// additional methodsdbug;dbug;dbug;
Just like debug,
dbug won't do anything unless the
DEBUG env variable matches the
dbug logger, but with slightly more lenient matching.
DEBUG=* DEBUG=foo,quux DEBUG=foo // also acts as foo:*
A user script wanting to dynamically enable or disable can do it a couple ways:
env = 'foo,quux'; // just like ENV varvar foo = 'foo';fooenabled = true;