nim-syslog
nim-syslog copied to clipboard
Add support for log masks
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 tosetlogmask()
, which allows blocking all logging attempts and makes the interface more intuitive.