Sulfur
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: consolelog warn: consolewarn err: consoleerroreventName;
Consequently, warn
and err
events go through stderr
.
Usage
Require sulfur in your application, then absorb the smells exposed from libraries:
var sulfur = ;var smell = ; // suppose this was exposed through some-modulesulfur; smell; // will log through sulfur
License
MIT-Licensed. See LICENSE file for details.