Learn R Programming

logger (version 0.2.2)

appender_syslog: Send log messages to the POSIX system log

Description

Send log messages to the POSIX system log

Usage

appender_syslog(identifier, ...)

Value

function taking lines argument

Arguments

identifier

A string identifying the process.

...

Further arguments passed on to open_syslog.

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

Run this code
if (FALSE) {
if (requireNamespace("rsyslog", quietly = TRUE)) {
  log_appender(appender_syslog("test"))
  log_info("Test message.")
}
}

Run the code above in your browser using DataLab