LOGGER(1) | General Commands Manual | LOGGER(1) |
logger
— make
entries in the system log
logger |
[-cis ] [-f
file] [-p
pri] [-t
tag] [message ...] |
The logger
utility provides a shell
command interface to the syslog(3) system
log module.
The options are as follows:
-c
-f
file-i
-p
pri-s
-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 is compliant with the
IEEE Std 1003.1-2008 (“POSIX.1”)
specification.
The flags [-cfipst
] are extensions to that
specification.
June 17, 2019 | OpenBSD-current |