I need to add coloring to boost log on Windows. Very simple - if error - use red ink, if warning - yellow ink, otherwise - white. No point to quote my code. I used exactly this solution (2nd answer, I suppose 1st answer is for Linux only):
How to add color coding to boost::log console output?
I found few others, but all are based on the same principle - set console foreground color, using win32 api and do that in a sink. Problem is that it's not good. If log is receiving messages from multiple sources, sometimes color is applied to a fragment (not even a full) line and often another line (previous or next). I declared sink as synchronous (with asynchronous, coloring looked like a drawing of a mad man). Is there any way to stabilize / fix that?
Voitek