| 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:
-cLOG_CONS): if the
message cannot be passed to
syslogd(8), the message is
written to /dev/console.-d
sd-f
file-iLOG_PID).-m
msgid-nLOG_NDELAY).-p
pri-sLOG_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 11.0 |