Boost logo

Boost :

Subject: Re: [boost] [log] Default logging configuration for trivial logger
From: Ben Pope (benpope81_at_[hidden])
Date: 2014-02-18 04:25:48


On 18/02/14 16:49, Andrey Semashev wrote:
> On Tue, Feb 18, 2014 at 12:28 PM, Ben Pope <benpope81_at_[hidden]> wrote:
>> Hi,
>>
>> I'm using the trivial logging interface, but I need to tweak the default
>> configuration. I want to be able to flush after every log entry, and I
>> also want to be able to do file rolling.
>>
>> As far as I can tell, in order to configure it this way, I pretty much
>> need to configure the whole thing from scratch including formatters, but
>> I can't find the code that sets up the default logger to replicate it.
>>
>> Any pointers?
>
> Yes, you have to create and configure the sink yourself to do that.
> The default sink cannot be accessed. It is rather specialized and
> cannot be customized in any way, so it wouldn't be of use for you
> anyway.

The code for the default formatter and sink must exist somewhere for
inspiration, no?

Ben


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