appender_syslog {logger}R 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 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

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

## End(Not run)

[Package logger version 0.3.0 Index]