Bug in logger

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 4 01:30:38 PDT 2015


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");
}


More information about the Digitalmars-d mailing list