nim-syslog icon indicating copy to clipboard operation
nim-syslog copied to clipboard

Add support for log masks

Open belamenso opened this issue 5 years ago • 0 comments

Added functions setlogmask() and getlogmask() in order to implement functionality provided by syslog setlogmask (https://linux.die.net/man/3/setlogmask). Differences between this implementation and original:

  • I used set[SyslogSeverity] instead of bitmasks,
  • I opted for a new function, getlogmask(), instead of passing 0 to setlogmask(), which allows blocking all logging attempts and makes the interface more intuitive.

belamenso avatar Dec 27 '19 20:12 belamenso