synchronized class EventLog{
    void opCall(string s){
        std.file.append("logfile.txt", s);
    }
}

shared EventLog eventLog;

Pleas, is it multithread safe and prefered way?
  • logging xtimoner via Digitalmars-d-learn

Reply via email to