Boost.Log - Multiple processes to one log file?

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2012-11-06T16:59:01Z Indexed on 2012/11/06 16:59 UTC
Read the original article Hit count: 153

Filed under:
|
|

Reading through the doc for Boost.Log, it explains how to "fan out" into multiple files/sinks pretty well from one application, and how to get multiple threads working together to log to one place, but is there any documentation on how to get multiple processes logging to a single log file?

What I imagine is that every process would log to its own "private" log file, but in addition, any messages above a certain severity would also go to a "common" log file. Is this possible with Boost.Log? Is there some configuration of the sinks that makes this easy?

I understand that I will likely have the same "timestamp out of order" problem described in the FAQ here, but that's OK, as long as the timestamps are correct I can work with that. This is all on one machine, so no remote filesystem problems either.

© Stack Overflow or respective owner

Related posts about c++

Related posts about logging