-
Notifications
You must be signed in to change notification settings - Fork 33
setMask
Robert Rossmann edited this page Jan 24, 2014
·
3 revisions
Node-syslog setMask
up to version 1.0.1 we added new functionality. Now you can set logging mask. That means, you can configure your logging system to filter not needed messages by log level.
Examples:
Syslog.setMask(Syslog.LOG_ERR);
Output only log messages with error level.
Syslog.setMask(Syslog.LOG_ERR | Syslog.LOG_INFO);
Output only log messages with error and info level.
Syslog.setMask(Syslog.LOG_ERR, true);
Second parameter set "upTo" severity for the filter level. That means, to output all log messages with level up to error.