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 following options are available:
-i
-s
-f
file-p
prifacility.level
pair.
For example, “-p
local3.info
” logs the message(s) as
informational level in the
local3 facility. The default is
“user.notice
”.-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
command is expected to be
IEEE Std 1003.2 (“POSIX.2”)
compatible.
March 16, 2022 | macOS 15.2 |