Filter based on severity #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the old days, you could filter logging based on severity. That way you could instruct the logger to ignore debug & info level log requests.
So, implement a logLevel() function like this:
var logger = require( 'nodify-logger' );
logger.createInstance( { ... options ... }, function( _f, _m, _i ) {
_i.logLevel( "E" );
_f( _m.I_WHATEVER, "you shouldn't see this message" );
_f( _m.E_DINGO, "space dingo says hello. (you should see this message)." );
... more code ...
} );