Hi,
Just wondering which logger library is thread safe?
Need to find a mature one to be used in a multi-threaded env.
Thanks.
Thread overview |
---|
July 12, 2023 looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Hi, Just wondering which logger library is thread safe? Need to find a mature one to be used in a multi-threaded env. Thanks. |
July 12, 2023 Re: looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Wednesday, 12 July 2023 at 01:24:41 UTC, mw wrote: >Hi, Just wondering which logger library is thread safe? Need to find a mature one to be used in a multi-threaded env. Oh, forget to mention: need output to logger file. |
July 12, 2023 Re: looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Wednesday, 12 July 2023 at 01:26:25 UTC, mw wrote: >On Wednesday, 12 July 2023 at 01:24:41 UTC, mw wrote: >Hi, Just wondering which logger library is thread safe? Need to find a mature one to be used in a multi-threaded env. Oh, forget to mention: need output to logger file. tried: https://run.dlang.io/is/ufy4yF
but: onlineapp.d(4): Error: none of the overloads of template so, how to fix this compiler error? |
July 12, 2023 Re: looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Wednesday, 12 July 2023 at 01:55:00 UTC, mw wrote: >
See examples at https://dlang.org/phobos/std_logger.html
|
July 12, 2023 Re: looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Danilo | On Wednesday, 12 July 2023 at 04:48:23 UTC, Danilo wrote: >On Wednesday, 12 July 2023 at 01:55:00 UTC, mw wrote: >
See examples at https://dlang.org/phobos/std_logger.html But what's wrong with my code? the strange compiler error? |
July 12, 2023 Re: looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | 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.
It works when you cast away the
|
July 12, 2023 Re: looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | WebFreak said you can just use trace(), info() etc. inside threads. It is thread-safe by default.
|
July 12, 2023 Re: looking for recommendation: which thread safe logger library? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Danilo | 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.
It works when you cast away the cast away? the variable itself is called Sigh, D is so broken on such basic stuff. |