Implementing std.log
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Apr 21 10:09:34 PDT 2011
On 4/21/11 11:53 AM, so wrote:
>>> So you want the iostream way, global logger objects, otherwise i
>>> don't see how this solves the problem you are suggesting.
>>
>> No globals, of course, loggers are part of objects. In most cases,
>> everyone who adds log entry creates its own logger and add it into a
>> hierarchy.
>
> class A {
> logger log;
> }
>
> class B {
> A a;
> logger log;
> }
[snip]
Again, I'd _much_ rather prefer if someone just implemented this:
http://google-glog.googlecode.com/svn/trunk/doc/glog.html
It's simple, to the point, and brings the bacon home.
In fact I'm putting dibs on this. I'll implement the thing and make a
proposal.
Andrei
More information about the Digitalmars-d
mailing list