LOGGER(1) LOGGER(1) logger - logger [] logger . ' , . , -f, . -d, --udp (UDP). , ' syslog, /etc/services, 514. ' --server --socket. -e, --skip-empty . , - . , , . , --prio-prefix, . , , ( <13>). -f, --file . . -i PID . --id[=] PID logger . ' , PID logger. , , --id=$$ (PPID). Note that the system logging infrastructure (for example systemd when listening on /dev/log) may follow local socket credentials to override the PID specified in the message. logger(1) is able to set those socket credentials to the given id, but only if you have root permissions and a process with the specified PID exists, otherwise the socket credentials are not modified and the problem is silently ignored. --journald[=] systemd. , . , . , journald. . systemd.journal-fields(7), . , MESSAGE_ID, . : logger --journald <, --journald , . , PRIORITY. journalctl(1) MESSAGE. journalctl --output json-pretty . MESSAGE , MESSAGE . , , . --msgid - MSGID RFC 5424 . , - . , --rfc5424. --rfc5424 , . -n, --server syslog, . --udp --tcp, logger UDP, , ' TCP. --no-act , ' . --stderr . --octet-count RFC 6587 . , UDP RFC6587 ( ) TCP. -P, --port . , syslog ' udp syslog-conn ' tcp. -p, --priority . .. , -p local3.info local3. user.notice. --prio-prefix syslog , . , . 8 . , local0.info , =16 =6, <134>. , , -p. , , , -p. This option doesn't affect a command-line message. This option is primarily designed for use cases where logger is used in a pipeline (e.g., daemon | logger --prio-prefix) to read multiple messages with different priorities. --rfc3164 syslog BSD RFC 3164 . --rfc5424[=] syslog RFC 5424 . ' : notq, notime, nohost. notq . , , . , --sd-id timeQuality. notime ( notq) ISO-8601, . nohost gethostname(2) . RFC 5424 logger, 2.26. -s, --stderr Output the message to standard error as well as to the system log. The complete message is output in the same form as sent to syslog or journald, including priority and possibly other fields. This option is primarily designed for debugging purposes and is often used with --no-act. --sd-id [@] RFC 5424. --sd-param . . ( @) . . @ ' . logger timeQuality. RFC 5424 origin ( ip, enterpriseId, software swVersion) meta ( sequenceId, sysUpTime language). @. --sd-param = , -. --sd-id, . , , . logger --rfc5424 --sd-id zoo@123 \ --sd-param tiger="" \ --sd-param zebra="" \ --sd-id manager@123 \ --sd-param onMeeting="yes" \ " " : <13>1 2015-10-01T14:07:59.168662+02:00 ws kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="218616"][zoo@123 tiger="" zebra=""][manager@123 onMeeting="yes"] -S, --size . 1 , , RFC 3164. RFC 5424 . , RFC 5424 , 4 . , 1 , - syslog. , --size logger ( , --rfc5424). : , syslog. . , 50 80 . , , . , , , . --socket-errors ' Unix. : on, off auto. auto ( ), logger , systemd(1), , /dev/log . /dev/log , openlog(3). logger(1) 2.26 openlog(3), , , Unix. auto. , , logger(1). -T, --tcp (TCP). , ' syslog-conn, /etc/services, 601. ' --server --socket. -t, --tag , , . ' , ( ' , ). -u, --socket . -- . (-). -h, --help . -V, --version . logger 0 >0, . : auth authpriv cron daemon ftp kern , user lpr mail news syslog user uucp local0 to local7 security auth : emerg alert crit err warning notice info debug panic emerg error err warn warning syslog(3). logger IEEE 1003.2 ("POSIX.2"). logger System rebooted logger -p local0.notice -t HOSTIDM -f /dev/idmc logger -n loghost.example.com System rebooted logger 1983-1993 , Karel Zak , Rainer Gerhards Sami Kerola . journalctl(1), syslog(3), systemd.journal-fields(7) logger util-linux, Linux . util-linux 2.42 2026-04-01 LOGGER(1)