Boost logo

Boost :

Subject: Re: [boost] [log] auto_flush not flushing?
From: Michael Caisse (boost_at_[hidden])
Date: 2010-06-13 02:03:46


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.

The program is terminated when I "enter a key" and several items have
been sent long before.

I'll see if I can come up with a small and self-contained example.

Thanks -
michael

-- 
----------------------------------
Michael Caisse
Object Modeling Designs
www.objectmodelingdesigns.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk