Re: Bug in ucspilogd v2.2.0.0

From: Guillermo <gdiazhartusch_at_gmail.com>
Date: Fri, 21 Aug 2015 22:34:17 -0300

2015-08-12 2:54 GMT-03:00 Laurent Bercot:
>
> ucspilogd doesn't care about the chosen trailer character. It will
> treat \0 and \n equally as line terminators - which is the only
> sensible choice when logging to a text file and prepending every
> line with some data.

Oh. Then logger version 2.26.2 should work fine adding the -T option,
and does for me using ucspilogd from s6-2.1.6.0 (which I believe
didn't change for 2.2.0.0).

$ logger -V
logger from util-linux 2.26.2

$ BANNER="ucspilogd test" s6-ipcserver test-socket fdmove -c 1 2
ucspilogd BANNER 2>out &
$ printf "This\nshould\n" | logger -Tu test-socket -p user.warning
$ printf "work\nfine\n" | logger -Tu test-socket -p user.alert
$ logger -Tu test-socket -p user.info "then."
$ cat out
ucspilogd test: user.warn: Aug 2121:05:40 test: This
ucspilogd test: user.warn: Aug 21 21:05:40 test: should
ucspilogd test: user.alert: Aug 21 21:05:44 test: work
ucspilogd test: user.alert: Aug 21 21:05:44 test: fine
ucspilogd test: user.info: Aug 21 21:05:51 test: then.

Of course, it worked with /dev/log too.

Thanks,
G.
Received on Sat Aug 22 2015 - 01:34:17 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC