Manual Page Search Parameters
logger(1P, 1p) log messages
inetutils-logger, logger(1) Send messages to the system log
util-linux-logger, logger(1) enter messages into the system log

LOGGER(1) User Commands LOGGER(1)

logger - Send messages to the system log

logger [OPTION...] [MESSAGE]

Send messages to syslog

-4, --ipv4
use IPv4 for logging to host
-6, --ipv6
use IPv6 with a host target
log the content of FILE
log to HOST instead of to the default /dev/log
log the process id with every line
log with priority PRI
copy the message to stderr
set source IP address
prepend every line with TAG
log to UNIX socket SOCK instead of /dev/log
-?, --help
give this help list
give a short usage message
print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

Written by Sergey Poznyakoff.

Report bugs to <>.

Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


The full documentation for logger is maintained as a Texinfo manual. If the info and logger programs are properly installed at your site, the command

info logger

should give you access to the complete manual.

October 2022 GNU inetutils 2.4