Boost logo

Boost :

Subject: Re: [boost] [log] auto_flush not flushing?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-06-14 05:05:07

On 06/14/2010 12:08 AM, Michael Caisse wrote:
> Andrey Semashev wrote:
>> On 06/12/2010 07:32 AM, Michael Caisse wrote:
>>> What happens is that the log file shows up after the program exits.
>>> Since I was hoping to tail the file for some debug ... that isn't very
>>> convenient.
>>> Ideas of what I have done wrong?
>> The file is only created when the first log record is written to it.
>> Could it be the case that you don't log until the end of the
>> application run time or filters reject records? Also, is it possible
>> that the execution time is very short to tell for sure when the record
>> is written to the file?
>> The auto-flush feature is quite straightforward, I can't see from the
>> code how it could do wrong.
> Hi Andrey -
> The following is a reduced example that still fails. The file is not
> created until the program is exiting.
> Thank you for the help.

It works as expected on my Ubuntu 9.10 ("starting..." is in the file
when waiting for input). I tried on trunk, but the related code from v1
is still the same. What library version do you use?

Boost list run by bdawes at, gregod at, cpdaniel at, john at