the sharedLog Logger (aka default logger) will only work after its static this has run.

you could create a new Logger and use this one.

static this() {
    auto tmpLog = new FileLogger("logfile.log");
    tmpLog.log("Hello World");
}

Reply via email to