powered by
Send log message to syslog server.
syslog( message, severity = "NOTICE", facility = "USER", host = Sys.info()[["nodename"]], app_name = Sys.info()[["user"]], proc_id = Sys.getpid(), server = "localhost", port = 601L )
text message (string).
severity level (string).
log facility (string).
machine that originally sends the message (string).
application name that originally sends the message (string).
process id that originally sends the message (numeric).
syslogd server hostname (string).
syslogd server port (integer).
Number of bytes written to socket.
# NOT RUN { syslog("log message", "INFO", app_name = 'program', server = 'logserver') # }
Run the code above in your browser using DataLab