Thread overview
Example code in std.logger.core doesn't even work
March 13

Example here:

https://dlang.org/phobos/std_logger_core.html#.sharedLog

Result:

https://run.dlang.io/is/RMtF0I

March 13

Try this:

auto sharedLog = new FileLogger("/dev/null");

March 13

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:

sharedLog = cast(shared)new FileLogger("/dev/null");
March 13

On Monday, 13 March 2023 at 10:03:59 UTC, Johann Lermer wrote:

>

Try this:

auto sharedLog = new FileLogger("/dev/null");

That defines a new variable right. That's completely different.

March 13

On Monday, 13 March 2023 at 15:48:03 UTC, Yuxuan Shui wrote:

>

On Monday, 13 March 2023 at 10:03:59 UTC, Johann Lermer wrote:

>

Try this:

auto sharedLog = new FileLogger("/dev/null");

That defines a new variable right. That's completely different.

Ah, sh..t. Didn't see that.

March 13

On Monday, 13 March 2023 at 02:53:00 UTC, Yuxuan Shui wrote:

>

Example here:

https://dlang.org/phobos/std_logger_core.html#.sharedLog

Result:

https://run.dlang.io/is/RMtF0I

this changed in one of the most recent releases, but you can always expect breaking changes in an std.experimental module

March 13

On Monday, 13 March 2023 at 20:32:08 UTC, WebFreak001 wrote:

>

On Monday, 13 March 2023 at 02:53:00 UTC, Yuxuan Shui wrote:

>

Example here:

https://dlang.org/phobos/std_logger_core.html#.sharedLog

Result:

https://run.dlang.io/is/RMtF0I

this changed in one of the most recent releases, but you can always expect breaking changes in an std.experimental module

Breaking change is fine... I expect documentation to be updated with the change.

March 17
On 3/13/23 4:32 PM, WebFreak001 wrote:
> On Monday, 13 March 2023 at 02:53:00 UTC, Yuxuan Shui wrote:
>> Example here:
>>
>> https://dlang.org/phobos/std_logger_core.html#.sharedLog
>>
>> Result:
>>
>> https://run.dlang.io/is/RMtF0I
> 
> this changed in one of the most recent releases, but you can always expect breaking changes in an std.experimental module

It is no longer namespaced under std.experimental, so I would not expect breaking changes