Boost logo

Boost Users :

Subject: Re: [Boost-users] boost.log: how to view open log files
From: Eugenio Bargiacchi (svalorzen_at_[hidden])
Date: 2014-01-13 09:16:38


You can force flushes by configuring a sink to do so:

sink->locked_backend()->auto_flush(true);

On Mon, Jan 13, 2014 at 2:39 PM, <Georg.Kellerer_at_[hidden]> wrote:

> Hi,
>
>
>
> currently i am writeng a windows service and use the boost.log library for
> logfile creation. The serive should run long and I want to view the log
> files when the service is running. At the moment the logfile is written to
> the disk when the service ends and the file always has a size of 0 bytes.
> Is there a way to configure boost.log in a way that the log entries are
> written to disk immideately and that the logfile is not locked for reading
> by another application so that I can view my logfile?
>
>
>
> Thanks a lot,
>
> Georg
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net