Example code in std.logger.core doesn't even work

Petar Petar
Mon Mar 13 13:15:03 UTC 2023


On Monday, 13 March 2023 at 10:03:59 UTC, Johann Lermer wrote:
> Try this:
>
> auto sharedLog = new FileLogger("/dev/null");

This also works, but is likely thread unsafe:

```d
sharedLog = cast(shared)new FileLogger("/dev/null");
```


More information about the Digitalmars-d mailing list