set_syslog_mask {rsyslog} | R Documentation |
Set the System Log Priority Mask
Description
set_syslog_mask
can be used to prevent messages below a priority
level from being written to the system log.
Usage
set_syslog_mask(level)
Arguments
level |
Mask (hide) messages below this priority level. One of
|
Examples
## Not run:
open_syslog("my_script")
syslog("This message is visible.", level = "INFO")
set_syslog_mask("WARNING")
syslog("No longer visible.", level = "INFO")
syslog("Still visible.", level = "WARNING")
close_syslog()
## End(Not run)
[Package rsyslog version 1.0.3 Index]