Syslog - pkoper/gtm-posix GitHub Wiki
openlog
openlog^posix(.ident,.option,.facility)
takes ident, stringified option names and facility, and calls openlog(3).
option
is |
(pipe) joined list of case insensitive options: "CONS"
, "NDELAY"
, "NOWAIT"
and "PID"
, e.g. "PID|CONS"
facility
is one of case insensitive options:
"AUTH"
, "AUTHPRIV"
, "CRON"
, "DAEMON"
, "FTP"
, "KERN"
, "LOCAL0"
, "LOCAL1"
, "LOCAL2"
, "LOCAL3"
,
"LOCAL4"
, "LOCAL5"
, "LOCAL6"
, "LOCAL7"
, "LPR"
, "MAIL"
, "NEWS"
, "SYSLOG"
, "USER"
or "UUCP"
syslog
syslog^posix(.message,.priority)
takes massage and optional stringified priority name, and calls syslog(3).
priority
is one of case insensitive options: "EMERG"
, "ALERT"
, "CRIT"
, "ERR"
, "WARNING"
, "NOTICE"
, "INFO"
or "DEBUG"
. When no priority is specified, the NOTICE is used, which usually won't be saved in /var/log/messages.
GTM>d openlog^posix("TEST","PID|CONS","USER")
GTM>d syslog^posix("ABC")
GTM>d syslog^posix("DEF","EMERG")
GTM>
Message from syslogd@neo01 at Jul 22 20:11:06 ...
TEST[4616]: DEF
GTM>zsy "tail -1 /var/log/messages"
Jul 22 20:11:06 neo01 TEST[4616]: ABC
GTM>