
10 Feb
2009
10 Feb
'09
8:58 a.m.
On Tue, 10 Feb 2009 19:25:10 +1100, "Vladimir Batov" <batov@people.net.au> 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