logger: add support for -H NAME to override system hostname

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-07-31 11:48:58 +02:00
parent c7f65e11c9
commit f32ca837c1
2 changed files with 12 additions and 1 deletions

View File

@@ -37,6 +37,7 @@
.Op Fl d Ar SD
.Op Fl f Ar FILE
.Op Fl h Ar HOST
.Op Fl H Ar HOSTNAME
.Op Fl m Ar MSGID
.Op Fl p Ar PRIO
.Op Fl P Ar PORT
@@ -95,6 +96,11 @@ accepts
.Fl f-
as an alias for
.Ar stdout .
.It Fl H Ar hostname
Set the hostname in the header of the message to specified value.
If not specified, host part of
.Xr gethostname 3
will be used.
.It Fl h Ar host
Send the message to the remote system
.Ar host