Usage:
logger [options] [<message>]
Enter messages into the system log.
Options:
-i log the logger command's PID
--id[=<id>] log the given <id>, or otherwise the PID
-f, --file <file> log the contents of this file
-e, --skip-empty do not log empty lines when processing files
--no-act do everything except the write the log
-p, --priority <prio> mark given message with this priority
--octet-count use rfc6587 octet counting
--prio-prefix look for a prefix on every line read from stdin
-s, --stderr output message to standard error as well
-S, --size <size> maximum size for a single message
-t, --tag <tag> mark every line with this tag
-n, --server <name> write to this remote syslog server
-P, --port <port> use this port for UDP or TCP connection
-T, --tcp use TCP only
-d, --udp use UDP only
--rfc3164 use the obsolete BSD syslog protocol
--rfc5424[=<snip>] use the syslog protocol (the default for remote);
<snip> can be notime, or notq, and/or nohost
--sd-id <id> rfc5424 structured data ID
--sd-param <data> rfc5424 structured data name=value
--msgid <msgid> set rfc5424 message id field
-u, --socket <socket> write to this Unix socket
--socket-errors on|off|auto
print connection errors when using Unix sockets
--journald[=<file>] write journald entry
-h, --help display this help
-V, --version display version
For more details see logger(1).
Options (25)
| Option | Description | Source |
|---|
-i | Log the PID of the logger process with each line. | help + man |
--id id | Log the PID of the logger process with each line. | help + man |
-f, --file file | Log the contents of the specified file. | help + man |
-e, --skip-empty | do not log empty lines when processing files | help + man |
--no-act | Causes everything to be done except for writing the log message to the system log, and removing the connection to the journal. | help + man |
-p, --priority prio | Enter the message into the log with the specified priority. | help + man |
--octet-count | Use the RFC 6587 <https://tools.ietf.org/html/rfc6587> octet counting framing method for sending messages. | help + man |
--prio-prefix | Look for a syslog prefix on every line read from standard input. | help + man |
-s, --stderr | Output the message to standard error as well as to the system log. | help + man |
-S, --size size | Sets the maximum permitted message size to size. | help + man |
-t, --tag tag | Mark every line to be logged with the specified tag. | help + man |
-n, --server name | Write to the specified remote syslog server instead of to the system log socket. | help + man |
-P, --port port | use this port for UDP or TCP connection | help + man |
-T, --tcp | Use stream (TCP) only. | help + man |
-d, --udp | Use datagrams (UDP) only. | help + man |
--rfc3164 | Use the RFC 3164 <https://tools.ietf.org/html/rfc3164> BSD syslog protocol to submit messages to a remote server. | help + man |
--rfc5424 snip | Use the RFC 5424 <https://tools.ietf.org/html/rfc5424> syslog protocol to submit messages to a remote server. | help + man |
--sd-id id | Specifies a structured data element ID for an RFC 5424 message header. | help + man |
--sd-param data | Specifies a structured data element parameter, a name and value pair. | help + man |
--msgid msgid | Sets the RFC 5424 <https://tools.ietf.org/html/rfc5424> MSGID field. | help + man |
-u, --socket socket | Write to the specified socket instead of to the system log socket. | help + man |
--socket-errors on|off|auto | print connection errors when using Unix sockets | help + man |
--journald file | Write a systemd journal entry. | help + man |
-h, --help | Display help text and exit. | help + man |
-V, --version | Display version and exit. | help + man |
Exit status (1) from the manual page
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.