logger
a shell command interface to the syslog(3) system log module
- Provided by: bsdutils (Version: 1:2.20.1-5.1ubuntu20.9)
- Source: util-linux
- Report a bug
a shell command interface to the syslog(3) system log module
logger |
[-dhisV] [-f
file] [-n
server] [-P
port] [-p
pri] [-t
tag] [-u
socket] [message] |
logger makes entries in the system log. It
provides a shell command interface to the syslog(3) system
log module.
Options:
-d,
--udp-i,
--id-f,
--file file-h,
--help-n,
--server server-P,
--port port-p,
--priority priority-s,
--stderr-t,
--tag tag-u,
--socket socket-V,
--version-f flag is not provided, standard input is
logged.The logger utility exits 0 on success, and
>0 if an error occurs.
Valid facility names are: auth, authpriv (for security information of a sensitive nature), cron, daemon, ftp, kern (can't be generated from user process), lpr, mail, news, security (deprecated synonym for auth), syslog, user, uucp, and local0 to local7, inclusive.
Valid level names are: alert, crit, debug, emerg, err, error (deprecated synonym for err), info, notice, panic (deprecated synonym for emerg), warning, warn (deprecated synonym for warning). For the priority order and intended purposes of these levels, see syslog(3).
logger System rebooted logger -p local0.notice -t HOSTIDM -f /dev/idmc logger -n loghost.example.com System rebooted
The logger command is expected to be
IEEE Std 1003.2 (“POSIX.2”)
compatible.
The logger command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.