23 Commits

Author SHA1 Message Date
Nathan Rajlich
13e1d068e9 remove v3 discussion note for now 2017-08-08 15:23:50 -07:00
Nathan Rajlich
87e7399fd7 readme++ 2017-08-08 14:42:25 -07:00
Nathan Rajlich
8b5c438a22 add Namespace Colors section to readme 2017-08-08 14:42:25 -07:00
Nathan Rajlich
25eb545324 more readme screenshots replaced 2017-08-08 14:42:25 -07:00
Nathan Rajlich
dfbac9c30f readme refactor 2017-08-08 14:42:25 -07:00
antoine.leveugle
39eb2770a2 Use Date#toISOString() instead to Date#toUTCString() when output is not a TTY
Easier to parse programatically and contains milliseconds.

Closes #418.
2017-08-08 14:42:25 -07:00
George Joseph
9d7c997992 Make millisecond timer namespace specific and allow 'always enabled' output (#408)
* 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');
2017-08-08 14:42:25 -07:00
Mattias Kindborg @FantasticFiasco
659ac0252c docs(readme): fix typo (#473) 2017-08-04 11:51:36 -07:00
Tim Ruffles
a45d4a0239 document .enabled flag (#465)
Was added in #15, should be documented (e.g #423)
2017-06-15 14:39:48 -07:00
Mohammad Asad Siddiqui
b68dbf8cd4 Fix typo (#455)
Enables/disabled -> Enables/disabled
2017-05-12 16:54:14 -07:00
Pia Mancini
065cbfb1bf Add backers and sponsors from Open Collective (#422)
Now your open collective backers and sponsors can to appear directly on your README. 
see how it'll look [here](https://github.com/apex/apex#backers)
[More info](https://github.com/opencollective/opencollective/wiki/Github-banner)
Also add badges on top.
2017-02-17 10:38:15 -08:00
Nathan Rajlich
918d686521 Revert "add Slackin invite badge"
This reverts commit f46d67144d78a081c45a0d02cfec9da48b44e105.
2017-02-10 12:29:08 -08:00
Nathan Rajlich
f46d67144d add Slackin invite badge 2017-02-10 12:28:39 -08:00
Andrew E. Rhyne
580a7a18b3 changed slackin url 2017-02-10 11:30:25 -08:00
Andrew E. Rhyne
9f33c9a8a8 added slackin 2017-02-10 11:24:08 -08:00
Nathan Rajlich
62df220d20 Deprecate DEBUG_FD (#405)
* remove DEBUG_FD from readme

* deprecate DEBUG_FD

* remove arrow function

ES6 habbits hit hard :D
2016-12-27 18:25:09 -06:00
Andrew Scheller
146d0d1c0a Fix README typo 2016-12-21 06:17:41 +00:00
Andrew E. Rhyne
ea43614db8 added notice about v3 api discussion 2016-12-20 22:05:21 -08:00
Andrew E. Rhyne
d85c0c613d build perf, fix for bowerfile, fix for webworker 2016-12-20 20:44:57 -08:00
Sean Lavine
932b24a685 rm non-maintainted dist/ dir (#375) 2016-12-17 22:43:35 -08:00
Yami
cea345a1cb docs: Simplified language in the opening paragraph. Closes #340 (#373)
* docs: Simplified language in the opening paragraph. Closes #340

* fix: Adjust wording as per @thebigredgeek
2016-12-16 11:16:15 -08:00
Andrew E. Rhyne
a5bbe13b75 travis ci integration 2016-12-14 11:27:21 -08:00
Nathan Rajlich
e58d54b46f Node: configurable util.inspect() options (#327)
* `formatArgs()` gets passed the args Array directly

Rather than working on `arguments`. The Node.js version
was for some reason turning the arguments into an Array
again so it was happening twice! This should make things
faster overall.

* whitespace

* rename `Readme.md` to `README.md`

* refactor the `debug()` constructor a bit

Now, debug instances are hot-enabelable. That is, you can
toggle the `debug.enabled` boolean on instances to enable
or disable an instance. There is still no global version of
this functionality.

Now all instances get a `useColors` and `colors` property,
even disabled ones, in case they get enabled later on. Boot-up
time impact should be negligible.

* node: allow configurable `util.inspect()` options

Via env variables by default. So to get more object depth,
you pass the `DEBUG_DEPTH=10` env var.

For the `showHidden` option, you set `DEBUG_SHOW_HIDDEN=on`.

See the Node.js docs for the complete list of `util.inspect()` options:
https://nodejs.org/api/util.html#util_util_inspect_object_options

* README: document inspect env variables
2016-12-12 15:13:35 -08:00