Skip to content

YarGnawh/debug-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debug-list

Small utility for managing multiple visionmedia/debug

Installation

$ npm install debug-list --save

Usage

Example app.js:

var notepad = require('debug-list');

// fake app

notepad('booting %s', name);

notepad.add('http');
notepad.add('worker');
notepad.add('process');

http.createServer(function(req, res){
  notepad.http(req.method + ' ' + req.url);
  res.end('hello\n');
}).listen(3000, function(){
  notepad.http('listening');
});

// fake worker of some kind

require('./worker');
require('./process');

Example worker.js:

var notepad = require('debug-list');

setInterval(function(){
  notepad.worker('doing some work');
}, 1000);

Example process.js:

var debug = require('debug')('process');

setInterval(function(){
  debug('processing.... still works');
}, 1000);

About

Small utility for managing multiple visionmedia/debug

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published