On 09/11/2015 16:51, Casper Ti. Vector wrote:
I also considered the fifo method, but it appears that logs from different sources might be interleaved on the character level (for example, with `aaaa...' lines from source A and `bbbb...' lines from source B you might end up with `aabaabbb...' in the combined log) if no correct scheduling is done by the mixer, and I reckon that the scheduling routine will not be quite trivial to write...
Unix guarantees that writes to pipes are atomic up to PIPE_BUF characters. So, if your services only write full lines at a time, only lines will be interleaved, not characters. -- Laurent
