looking for recommendation: which thread safe logger library?

mw m at g.c
Wed Jul 12 16:21:11 UTC 2023


On Wednesday, 12 July 2023 at 09:47:26 UTC, Danilo wrote:
> On Wednesday, 12 July 2023 at 05:27:27 UTC, mw wrote:
>> But what's wrong with my code? the strange compiler error?
>
> Might be a bug/issue in the logger module.
>
> `sharedLog` uses the `shared` attribute,
> but the base class for everything ("abstract class Logger")
> does not use the `shared` attribute anywhere.
>
> - 
> https://github.com/dlang/phobos/blob/master/std/logger/core.d#L516C22-L516C22
>
> It works when you cast away the `shared` attribute from 
> `sharedLog`,

cast away? the variable itself is called `sharedLog`, the cast 
completely defeat the purpose.

Sigh, D is so broken on such basic stuff.


More information about the Digitalmars-d-learn mailing list