appender_syslog: Send log messages to the POSIX system log

View source: R/appenders.R

appender_syslogR Documentation

Send log messages to the POSIX system log

Description

Send log messages to the POSIX system log

Usage

appender_syslog(identifier, ...)

Arguments

identifier

A string identifying the process.

...

Further arguments passed on to rsyslog::open_syslog().

Value

function taking lines argument

Note

This functionality depends on the rsyslog package.

See Also

Other log_appenders: appender_async(), appender_console(), appender_file(), appender_kinesis(), appender_pushbullet(), appender_slack(), appender_stdout(), appender_tee(), appender_telegram()

Examples

## Not run: 
if (requireNamespace("rsyslog", quietly = TRUE)) {
  log_appender(appender_syslog("test"))
  log_info("Test message.")
}

## End(Not run)

logger documentation built on Oct. 30, 2024, 9:24 a.m.