Boost logo

Boost :

Subject: Re: [boost] [log] init methods and named parameters
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-02-27 17:48:09


On 02/27/2010 11:26 PM, Michael Caisse wrote:
> I've gotten a head start looking at the boost.log
> library that will be reviewed in a couple weeks.
>
> The utility methods utilize boost.parameter's named
> parameters. For example, boost::log::init_log_to_file.
>
> I would like to decide at runtime (via a config file)
> which set of parameters will listed. For example,
> rotation_size or rotation_interval or both.
>
> It is my first real use of boost.parameter so I may
> be missing something that is common knowledge. I
> don't see an easy way to do this. I thought maybe
> building a fusion sequence of parameters or something
> like that was the way to go...
> Looking for guidance. Thanks.

Boost.Parameter is not suited well for run time parameter composition.
Perhaps, what you're looking for is better achieved with
init_from_stream or init_from_settings.


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