Absorb log smells in your application
npm install sulfurA rudimentary and unconfigurable application logger that can only absorb logs from the event emitter module smell.
console functions:``js`
var fn = {
info: console.log,
warn: console.warn,
err: console.error
}[eventName];
Consequently, warn and err events go through stderr.
`js
var sulfur = require('sulfur');
var smell = require('smell')(); // suppose this was exposed through some-module
sulfur.absorb(smell, 'some-module');
smell.warn('warning message'); // will log through sulfur
``