syslog: Send log message to syslog server

Description Usage Arguments Value Examples

View source: R/syslog.R

Description

Send log message to syslog server.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

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

## End(Not run)

syslognet documentation built on Jan. 8, 2020, 5:07 p.m.

Related to syslog in syslognet...