Re: looking for recommendation: which thread safe logger library?

2023-07-12 Thread mw via Digitalmars-d-learn
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. `sharedLog` uses the `shared` attribute, but the base class for everything ("ab

Re: Compiling to RiscV32

2023-07-12 Thread Kagamin via Digitalmars-d-learn
Maybe the problem is with va_list, try to compile with -mtriple=riscv64-unknown-linux -mcpu=generic-rv64

Re: looking for recommendation: which thread safe logger library?

2023-07-12 Thread Danilo via Digitalmars-d-learn
WebFreak said you can just use trace(), info() etc. inside threads. It is thread-safe by default. ```d module app; import std.stdio; import std.logger; void main() { //auto file = File("logFile.log", "w"); auto file = stderr; // stdout sharedLog = cast(shared)new FileLogger(file)

Re: looking for recommendation: which thread safe logger library?

2023-07-12 Thread Danilo via Digitalmars-d-learn
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. `sharedLog` uses the `shared` attribute, but the base class for everything ("abstract class Logger") does not use the `shared` attribute a