Suggestion/proposal regarding std.logger candidate

Tobias Pankrath via Digitalmars-d digitalmars-d at puremagic.com
Sun May 25 03:40:51 PDT 2014


On Sunday, 25 May 2014 at 06:07:04 UTC, Robert BuRnEr Schadek via 
Digitalmars-d wrote:
> On 05/24/2014 05:39 AM, Tobias Pankrath via Digitalmars-d wrote:
>> On Saturday, 24 May 2014 at 11:58:35 UTC, Gary Willoughby 
>> wrote:
>>> On Saturday, 24 May 2014 at 10:04:33 UTC, David Osborne wrote:
>>>> Just to be clear, what I am suggesting/proposing is that the 
>>>> current
>>>> Logger class in std.logger be altered so that it looks more 
>>>> like
>>>> this, with filter, format and sink template arguments that 
>>>> determine
>>>> its behaviour, instead of using an inheritance-based 
>>>> approach.
>>>
>>> Please be aware of KISS, YAGNI and other beware of over 
>>> engineering
>>> principles
>>
>> Why not just copy the design of boost::log?
> because it is a c++ design based around streams

That's just the surface. See:

http://boost-log.sourceforge.net/libs/log/doc/html/log/design.html


More information about the Digitalmars-d mailing list