Re: Prepending log lines with custom tag

From: Robin Roestenburg <robin_at_roestenburg.io>
Date: Wed, 21 Sep 2016 14:39:24 +0200

> If you read your logs from a fifo, then it's easy: use the
> integrated pipe mechanism in s6-svscan. Your "logging service",
> say foo-log, would read from the fifo and prepend the lines
> with a tag, then pipe its data to the foo-log/log service
> (a "logger for your logging service") which would perform the
> logging per se.

Ah yes, that is easy.. I totally overlooked that the 'logging service'
can have
its own log service, thanks!

> I hope to be able to work on a new s6-overlay format next
> year, using s6-rc, which makes those "log pipelines" easy to
> set up.

Nice, curious to see how that turns out.

-- 
Robin Roestenburg
Received on Wed Sep 21 2016 - 12:39:24 UTC

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