Learn R Programming

logger (version 0.4.0)

appender_syslognet: Send log messages to a network syslog server

Description

Send log messages to a network syslog server

Usage

appender_syslognet(identifier, server, port = 601L)

Value

A function taking a lines argument.

Arguments

identifier

program/function identification (string).

server

machine where syslog daemon runs (string).

port

port where syslog daemon listens (integer).

Examples

Run this code
if (FALSE) {
if (requireNamespace("syslognet", quietly = TRUE)) {
  log_appender(appender_syslognet("test_app", "remoteserver"))
  log_info("Test message.")
}
}

Run the code above in your browser using DataLab