Re: std.logger issue

2023-01-27 Thread o3o via Digitalmars-d-learn
On Thursday, 26 January 2023 at 20:08:51 UTC, Krzysztof Jajeśnica wrote: On Thursday, 26 January 2023 at 17:17:28 UTC, o3o wrote: how can I enable `trace` level? Set `sharedLog.logLevel` instead of `globalLogLevel`. ```d // Note: the cast is needed because sharedLog is shared (cast()sharedLog

Re: std.logger issue

2023-01-26 Thread Ali Çehreli via Digitalmars-d-learn
On 1/26/23 12:08, Krzysztof Jajeśnica wrote: > On Thursday, 26 January 2023 at 17:17:28 UTC, o3o wrote: >> how can I enable `trace` level? > > Set `sharedLog.logLevel` instead of `globalLogLevel`. Good catch. I had tried the following without success: stdThreadLocalLog.logLevel = LogLevel.all

Re: std.logger issue

2023-01-26 Thread Krzysztof Jajeśnica via Digitalmars-d-learn
On Thursday, 26 January 2023 at 17:17:28 UTC, o3o wrote: how can I enable `trace` level? Set `sharedLog.logLevel` instead of `globalLogLevel`. ```d // Note: the cast is needed because sharedLog is shared (cast()sharedLog).logLevel = LogLevel.all; ``` Explanation: logging functions (`trace`, `