deoxxa/leg — pull request #3 by dnoiz1 (2014-03-04 22:31:39+00:00)
Title: added functionality for setting the loglevel, muting lower levels

levels are "trace" < "debug" < "info" < "warn" < "error" < "fatal"

custom levels will always be displayed

loglevel can be set with second param to leg, eg require('leg')(process.stdout, "info")
can also be set with environment variable eg LOG_LEVEL=info node index.js