set_syslog_mask: Set the System Log Priority Mask

View source: R/rsyslog.R

set_syslog_maskR 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 "DEBUG", "INFO", "NOTICE", "WARNING", "ERR", "CRITICAL", or "ALERT" – in that order of priority. See RFC 5424 for the basis of this schema.

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)


rsyslog documentation built on May 31, 2023, 6:54 p.m.