allow filtering of message components #3
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 a blatant rip-off of VMS's message utility, nodify-logger messages look like this:
%FACILITY-S-ABBREV:TIMESTAMP; MESSAGE.
Each of these components should be able to be turned on or off, maybe with a function call like this:
require( 'nodify-logger' ).createInstance( { ... options ... }, function( _f, _m, _i ) {
_f( _m, I_EVERYTHING );
_i.components( "FACILITY,SEVERITY,ABBREV,MESSAGE" );
_f( _m, I_NODATE );
... more code ...
} );
this could should spit out the following errors:
%SHIZZLE-I-EVERYTHING:2012-10-30T10:30:00Z; This message should have a date.
%SHIZZLE-I-NODATE; This message should not have a date.