diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3 index ce7dfdccf55e..1c19444405e9 100644 --- a/lib/libc/gen/syslog.3 +++ b/lib/libc/gen/syslog.3 @@ -27,9 +27,9 @@ .\" .\" @(#)syslog.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd May 13, 2021 +.Dd July 3, 2023 .Dt SYSLOG 3 .Os .Sh NAME .Nm syslog , @@ -130,8 +130,13 @@ and The .Fa ident argument is a string that will be prepended to every message. +It may be formatted as +.Fa ident[N] +in which case decimal number +.Fa N +replaces the process id within messages. The .Fa logopt argument is a bit field specifying logging options, which is formed by diff --git a/usr.bin/logger/logger.1 b/usr.bin/logger/logger.1 index 9842ffc0af1c..aacf4aad0ea4 100644 --- a/usr.bin/logger/logger.1 +++ b/usr.bin/logger/logger.1 @@ -27,9 +27,9 @@ .\" .\" @(#)logger.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd March 16, 2022 +.Dd July 3, 2023 .Dt LOGGER 1 .Os .Sh NAME .Nm logger @@ -72,9 +72,11 @@ If this option is specified, tries to send the message to all addresses. .It Fl i Log the process id of the logger process with each line. -This flag is ignored and the process id is always logged. +This flag is ignored and the process id is always logged, +but see also +.Fl t . .It Fl s Log the message to standard error, as well as the system log. .It Fl f Ar file Read the contents of the specified file into syslog. @@ -152,8 +154,13 @@ and .It Fl t Ar tag Mark every line in the log with the specified .Ar tag rather than the default of current login name. +Use +.Fl t +.Ar tag[N] +to insert specific decimal process id instead of id of +.Nm . .It Ar message Write the message to log; if not specified, and the .Fl f flag is not