std.experimental.logger formal review round 3

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 13 12:03:25 PST 2014


On Wednesday, 12 November 2014 at 15:05:29 UTC, Ola Fosheim 
Grøstad wrote:
> On Wednesday, 12 November 2014 at 12:39:24 UTC, Robert burner 
> Schadek wrote:
>> Only one thread can write to one Logger at a time, also known 
>> as synchronization. Anything else is properly wrong. But you 
>> can have as many Logger as you have memory.
>
> Taking a lock when the logging call doesn't flush to disk 
> sounds rather expensive.

If you log to a FileLogger it will flush. It is just a costly 
thing to do. There is no way get the work done but doing it.


More information about the Digitalmars-d mailing list