set_syslog_mask can be used to prevent messages below a priority
level from being written to the system log.
Arguments
- level
Mask (hide) messages below this priority level. One of
"DEBUG","INFO","NOTICE","WARNING","ERR","CRITICAL", or"ALERT"– in that order of priority. See RFC 5424 for the basis of this schema.
Examples
if (FALSE) { # \dontrun{
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()
} # }