Usage: logger [options] [] Enter messages into the system log. Options: -i log the logger command's PID --id[=] log the given , or otherwise the PID -f, --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 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 maximum size for a single message -t, --tag mark every line with this tag -n, --server write to this remote syslog server -P, --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[=] use the syslog protocol (the default for remote); can be notime, or notq, and/or nohost --sd-id rfc5424 structured data ID --sd-param rfc5424 structured data name=value --msgid set rfc5424 message id field -u, --socket write to this Unix socket --socket-errors on|off|auto print connection errors when using Unix sockets --journald[=] write journald entry -h, --help display this help -V, --version display version For more details see logger(1).