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
Maybe the problem is with va_list, try to compile with
-mtriple=riscv64-unknown-linux -mcpu=generic-rv64
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)
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