Skip to contents

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

This is generator function for log_appender(), for alternatives, see eg appender_console(), appender_file(), appender_tee(), appender_pushbullet(), appender_telegram(), appender_kinesis() and appender_async() for evaluate any log_appender() function in a background process.

Examples

if (FALSE) { # \dontrun{
if (requireNamespace("rsyslog", quietly = TRUE)) {
  log_appender(appender_syslog("test"))
  log_info("Test message.")
}
} # }