[Issue 24468] stdThreadLocalLog does not print `log` and `trace` logs
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Mar 30 03:37:33 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24468
--- Comment #2 from Tomoya Tanjo <ttanjo at gmail.com> ---
Thank you for the information.
It works when I set `Loglevel.all` to both logger before calling logging
methods  as follows.
```dlang
    ...
    (cast()sharedLog).logLevel = LogLevel.all;
    stdThreadLocalLog.logLevel = LogLevel.all;
    writeln("==== stdThreadLocalLog ====");
    stdThreadLocalLog.log("log");
    ...
```
> Perhaps this should be duplicated in the documentation for the `stdThreadLocalLog` property.
I guess the information of default logLevel in each logger should be in the
`Thread Local Redirection` section in std.logger because most users read the
documents in std.logger first.
Can I close this issue or leave it opened until the document is improved?
If the case of latter, I will send a pull request for it.
--
    
    
More information about the Digitalmars-d-bugs
mailing list