diplomat

Socket.IO-style logger

npm install diplomat
1 downloads in the last month

Diplomat

Diplomat is a Socket.io-style logger for NodeJS.

Install

Dependencies : npm install colors

Example

var d = require('diplomat');

d.debug('this is just what happened');
d.info('someone is connected !');
d.success('there is no more beer');
d.note('...');
d.warning('hey ! cannot connect !');
d.error('unknown error');

will produce:

   debug - this is just what happened
   info  - someone is connected !
   success - there is no more beer
   note  - ...
   warn  - hey ! cannot connect !
   error - unknown error
npm loves you