LOGGER(1) | General Commands Manual | LOGGER(1) |
logger
— make
entries in the system log
logger |
[-is ] [-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:
-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 [-ifpst
] are extensions to that
specification.
June 5, 2013 | OpenBSD-6.0 |