* dynamically updatable instances
* add a `destroy()` function to debug instances
So that "dynamically created instances" can clean up after themselves
* Make millisecond timer namespace specific
When debugging node apps, I find it much more useful for the
millisecond timer to be relative to last message from the same
namespace instead of any message. This is especially true when I'm
debugging across multiple libraries or multiple levels in the same
module and I'm interested in seeing all the messages but also need to
compare times from specific levels.
* Enable 'always enabled' output
Having to deal with 2 different logging mechanisms, one for debugging
and one for normal output, can be a nuisance. It would be much easier to
always use the same facility and semantics for both. This patch allows
an 'always enabled' namespace to be specified by appending a single '*'
to the namespace name.
var alwaysOn = require('debug')('normal:messages*');
alwaysOn('This will always display regardless of DEBUG');
* remove DEBUG_FD
Now simply uses `process.stderr`. Breaking API change,
for the v3 branch.
Previously used internal and undocumented Node.js APIs to support
this underly used API.
Fixes#280Closes#386
* remove DEBUG_FD from readme
* Check for undefined on browser globals.
Not all environments include these globals. For example, web workers do not have global window objects.
* remove redundant global checks
* Hide in DEBUG_FD deprecation warning in Webstorm Fixes#410
+ Intellij idea
* Hide in DEBUG_FD deprecation warning in Webstorm Fixes#410
* whitelist DEBUG_FD for values 1 and 2 only
* Use appreciate depreciation message
Exporting to the "outer" scope of the module is more the responsibility
of the module loader (i.e. browserify, webpack, etc.) and thus this
is not necessary. `make test-browser` still passes after this patch.