Package 'syslognet'

Title: Send Log Messages to Remote 'syslog' Server
Description: Send 'syslog' protocol messages to a remote 'syslog' server specified by host name and TCP network port.
Authors: Panagiotis Cheilaris [aut, cre]
Maintainer: Panagiotis Cheilaris <[email protected]>
License: MIT + file LICENSE
Version: 0.1.2.1
Built: 2024-11-10 04:44:23 UTC
Source: https://github.com/philaris/syslognet

Help Index


Send log message to syslog server

Description

Send log message to syslog server.

Usage

syslog(
  message,
  severity = "NOTICE",
  facility = "USER",
  host = Sys.info()[["nodename"]],
  app_name = Sys.info()[["user"]],
  proc_id = Sys.getpid(),
  server = "localhost",
  port = 601L
)

Arguments

message

text message (string).

severity

severity level (string).

facility

log facility (string).

host

machine that originally sends the message (string).

app_name

application name that originally sends the message (string).

proc_id

process id that originally sends the message (numeric).

server

syslogd server hostname (string).

port

syslogd server port (integer).

Value

Number of bytes written to socket.

Examples

## Not run: 
syslog("log message", "INFO", app_name = 'program', server = 'logserver')

## End(Not run)