| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. |
| 2 |
.TH LOGGER "1" "April 2026" "GNU inetutils 2.8" "User Commands" |
| 3 |
.SH NAME |
| 4 |
logger \- Send messages to the system log |
| 5 |
.SH SYNOPSIS |
| 6 |
.B logger |
| 7 |
[\fI\,OPTION\/\fR...] [\fI\,MESSAGE\/\fR] |
| 8 |
.SH DESCRIPTION |
| 9 |
Send messages to syslog |
| 10 |
.TP |
| 11 |
\fB\-4\fR, \fB\-\-ipv4\fR |
| 12 |
use IPv4 for logging to host |
| 13 |
.TP |
| 14 |
\fB\-6\fR, \fB\-\-ipv6\fR |
| 15 |
use IPv6 with a host target |
| 16 |
.TP |
| 17 |
\fB\-f\fR, \fB\-\-file\fR=\fI\,FILE\/\fR |
| 18 |
log the content of FILE |
| 19 |
.TP |
| 20 |
\fB\-h\fR, \fB\-\-host\fR=\fI\,HOST\/\fR |
| 21 |
log to HOST instead of to the default \fI\,/dev/log\/\fP |
| 22 |
.TP |
| 23 |
\fB\-i\fR, \fB\-\-id\fR[=\fI\,PID\/\fR] |
| 24 |
log the process id with every line |
| 25 |
.TP |
| 26 |
\fB\-p\fR, \fB\-\-priority\fR=\fI\,PRI\/\fR |
| 27 |
log with priority PRI |
| 28 |
.TP |
| 29 |
\fB\-s\fR, \fB\-\-stderr\fR |
| 30 |
copy the message to stderr |
| 31 |
.TP |
| 32 |
\fB\-S\fR, \fB\-\-source\fR=\fI\,IP\/\fR |
| 33 |
set source IP address |
| 34 |
.TP |
| 35 |
\fB\-t\fR, \fB\-\-tag\fR=\fI\,TAG\/\fR |
| 36 |
prepend every line with TAG |
| 37 |
.TP |
| 38 |
\fB\-u\fR, \fB\-\-unix\fR=\fI\,SOCK\/\fR |
| 39 |
log to UNIX socket SOCK instead of \fI\,/dev/log\/\fP |
| 40 |
.TP |
| 41 |
\-?, \fB\-\-help\fR |
| 42 |
give this help list |
| 43 |
.TP |
| 44 |
\fB\-\-usage\fR |
| 45 |
give a short usage message |
| 46 |
.TP |
| 47 |
\fB\-V\fR, \fB\-\-version\fR |
| 48 |
print program version |
| 49 |
.PP |
| 50 |
Mandatory or optional arguments to long options are also mandatory or optional |
| 51 |
for any corresponding short options. |
| 52 |
.SH AUTHOR |
| 53 |
Written by Sergey Poznyakoff. |
| 54 |
.SH "REPORTING BUGS" |
| 55 |
Report bugs to <bug\[email protected]>. |
| 56 |
.SH COPYRIGHT |
| 57 |
Copyright \(co 2026 Free Software Foundation, Inc. |
| 58 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 59 |
.br |
| 60 |
This is free software: you are free to change and redistribute it. |
| 61 |
There is NO WARRANTY, to the extent permitted by law. |
| 62 |
.SH "SEE ALSO" |
| 63 |
syslogd(1) |
| 64 |
.PP |
| 65 |
The full documentation for |
| 66 |
.B logger |
| 67 |
is maintained as a Texinfo manual. If the |
| 68 |
.B info |
| 69 |
and |
| 70 |
.B logger |
| 71 |
programs are properly installed at your site, the command |
| 72 |
.IP |
| 73 |
.B info logger |
| 74 |
.PP |
| 75 |
should give you access to the complete manual. |