sulfur

1.0.1 • Public • Published

Sulfur

npm status build status dependency status coverage status

A rudimentary and unconfigurable application logger that can only absorb logs from the event emitter module smell.

Format

Output format is styled after clang's compile output. The smell events map onto the basic console functions:

var fn = {
  info: console.log,
  warn: console.warn,
  err: console.error
}[eventName];

Consequently, warn and err events go through stderr.

Usage

Require sulfur in your application, then absorb the smells exposed from libraries:

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

License

MIT-Licensed. See LICENSE file for details.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.14latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.14
1.0.00
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i sulfur

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • clux