Skip to content
thanpolas edited this page Apr 29, 2013 · 11 revisions

Logging with event emitters.

TOTAL UNFINISHED JUNK--HELP!

The following standard events are available for task authors and logger implementers. The node-task spec requires namespace support so any of the following may be called with sub-properties. For an example of this usage, please see the basic task example.

  • debug - Loggers should only listen to these events when debug mode is enabled.
  • info - Loggers should only listen for these events when verbose or debug is enable.
  • notice - Loggers should always listen for these events unless quiet mode is enabled.
  • success - Loggers should always listen for these events unless quiet mode is enabled.
  • warn - Loggers should always listen for these events unless quiet mode is enabled.
  • error - Loggers should always listen for these events unless quiet mode is enabled.

Needs a sample implementation. Should we try to use existing logging systems?

@thanpolas > I've done some work for node-logg, it can be easily manipulated to fit all requirements as it emits events in various facets (per logger hierarchy, log level).

Clone this wiki locally