std.experimental.logger formal review round 3

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 13 14:19:54 PST 2014


On Thursday, 13 November 2014 at 22:13:53 UTC, Marco Leise wrote:
> Am Wed, 12 Nov 2014 17:56:06 +0000
> schrieb "Dicebot" <public at dicebot.lv>:
>
>> […] have means to explicitly capture lock on global one from 
>> local proxies for optimized bulk logging.
>
> That's certainly something that occurred to me when talking
> with Manu about logging. A locked bulk transfer could
> be added, maybe replacing the single element transfer function
> that exists already. Thread local loggers that accumulate logs
> and pass them on to a global logger seem to be a well known
> use case.

One bad thing about that is that the global log is no longer 
sorted by time if you write to any file. That would make using 
the log much more difficult IMO.


More information about the Digitalmars-d mailing list