appender_syslognet: Send log messages to a network syslog server

View source: R/appenders.R

appender_syslognetR Documentation

Send log messages to a network syslog server

Description

Send log messages to a network syslog server

Usage

appender_syslognet(identifier, server, port = 601L)

Arguments

identifier

program/function identification (string).

server

machine where syslog daemon runs (string).

port

port where syslog daemon listens (integer).

Value

A function taking a lines argument.

Note

This functionality depends on the syslognet package.

Examples

## Not run: 
if (requireNamespace("syslognet", quietly = TRUE)) {
  log_appender(appender_syslognet("test_app", "remoteserver"))
  log_info("Test message.")
}

## End(Not run)

daroczig/logger documentation built on Oct. 22, 2024, 12:25 p.m.