LOGGER(1) LOGGER(1) logger - logger [] logger . , . , -f , . -d, --udp (UDP) . /etc/services, 514. --server --socket . -e, --skip-empty . . . --prio-prefix, . , (. <13>). -f, --file . . -i logger . --id[=] logger . , - logger. --id=$$ (PPID) . ( systemd /dev/log) . logger(1) , -, . --journald[=] systemd-. , , . journald-; systemd.journal-fields(7) . ,,_" , . : logger --journald <_=67feb6ffbaf24c5cbec13c008dd72309 = , . = = end logger --journald=.txt --journald , . , . journalctl(1) . journalctl --output json-pretty . , . , . --msgid - ,,RFC 5424 MSGID". msgid. --rfc5424 ; , . -n, --server . --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 . . 8 . , local0.info, =16 =6, <134>. , -p. , , -p. . --rfc3164 RFC 3164 BSD . --rfc5424[=] ,,RFC 5424 . : notq, notime, nohost. notq . . --sd-id timeQuality . notime ( notq) ISO-8601 , . nohost gethostname(2) . RFC 5424 logger 2.26. -s, --stderr . --sd-id name[@] RFC 5424 . --sd-param . . ( @) . . @ - . logger timeQuality . RFC 5424 ( ip, enterpriseId, software swVersion) ( sequenceId, sysUpTime language). - @. --sd-param = , . --sd-id . . logger --rfc5424 --sd-id @123 \ --sd-param ="" \ --sd-param ="" \ --sd-id @123 \ --sd-param ="" \ " " : <13>1 2015-10-01T14:07:59.168662+02:00 ws kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="218616"][@123 ="" =""][@123 =""] -S, --size . 1KiB , RFC 3164. RFC 5424, . RFC 5424 4KiB . 1KiB . , --size logger- ( --rfc5424). : , . . , 50 80 . , , . , 2 4 KiB , . --socket-errors mode Print errors about Unix socket connections. The mode can be on, off, or auto. When the mode is auto (the default), then logger will detect if the init process is systemd(1), and if so, the assumption is made that /dev/log can be used early at boot. The lack of /dev/log on other init systems will not cause errors, just as when using the openlog(3) system call. The logger(1) before version 2.26 used openlog(3), and thus was unable to detect the loss of messages sent to Unix sockets. When errors are not enabled, lost messages are not communicated and will result in a successful exit status of logger(1). -T, --tcp (TCP). syslog-conn /etc/services, 601. --server --socket . -t, --tag . ( - ). -u, --socket . -- . (-). -h, --help . -V, --version Display version and exit. 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 Std 1003.2 ("POSIX.2"). 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) For bug reports, use the issue tracker . logger ,,util-linux" . util-linux 2.41 2025-03-29 LOGGER(1)