Boost logo

Boost :

Subject: Re: [boost] [log] Review-ready version in the Vault
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2009-02-10 03:58:54


On Tue, 10 Feb 2009 19:25:10 +1100, "Vladimir Batov" <batov_at_[hidden]>
wrote:

> Hmm, I honestly think that having "loggers as class members" is a bad
idea.
>
> I do not usually like global objects either (static initialization
issues,
> too much visibility). However, what I definitely use a lot is retrieving
> the
> same log by name in different compilation modules (that takes the
> visibility
> down). Like
>
> boost::log log1(name);
> boost::log log2(name); // The same as log1
>

I think you should be able to do this using the new flyweight library.

Sebastian


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