LOGGER(1) | General Commands Manual | LOGGER(1) |
logger
— make
entries in the system log
logger |
[-cins ] [-d
SD] [-f
file] [-m
msgid] [-p
pri] [-t
tag] [message ...] |
logger
provides a shell command interface
to the syslog(3) system log
module.
Options:
-c
LOG_CONS
): if the
message cannot be passed to
syslogd(8), the message is
written to /dev/console.-d
sd-f
file-i
LOG_PID
).-m
msgid-n
LOG_NDELAY
).-p
pri-s
LOG_PERROR
).-t
tag-f
flag is not provided, standard input is
logged.The logger
utility exits 0 on
success, and >0 if an error occurs.
logger System rebooted logger -p local0.notice -t HOSTIDM -f /dev/idmc
The logger
utility conforms to
IEEE Std 1003.2-1992 (“POSIX.2”).
June 25, 2020 | NetBSD 10.99 |