std.experimental.logger formal review round 3

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 24 05:16:18 PDT 2014


On Friday, 24 October 2014 at 11:01:40 UTC, Martin Nowak wrote:
> On Sunday, 12 October 2014 at 12:06:44 UTC, Robert burner 
> Schadek wrote:
>>> What's stopping an interface or class to implement a logging 
>>> concept?
>>
>> Same as last time:
>> Logger[], Logger without a LogLevel not real useful IMO, (new) 
>> no thread safety by default
>
> I don't understand your answer. Do you have a link to your last 
> response.

You can not tell if the Logger will log a message, because you 
can't know its LogLevel. It is not thread safe because the 
interface can't have an implementation. Therefore the default 
implementation is not thread safe.


More information about the Digitalmars-d mailing list