Beispiel #1
0
 public Logger2(string name = "Logger", LogMode logMode = LogMode.NONE, AlertMode alertMode = AlertMode.NONE)
 {
     this.name      = name + ": ";
     this.logMode   = logMode;
     this.alertMode = alertMode;
     reseter        = new ManualResetEvent(false);
     worker         = new CommandWorker(this.name);
     worker.Start();
 }
Beispiel #2
0
 public Logger(string tag = "Logger", LogMode logMode = LogMode.NONE, AlertMode alertMode = AlertMode.NONE, object data = null, Boolean haveToBeSend = false, String path = "")
 {
     this.tag          = tag;
     this.logMode      = logMode;
     this.haveToBeSend = haveToBeSend;
     this.path         = path;
     this.alertMode    = alertMode;
     this.data         = data;
     commandWorker     = new CommandWorker("Logger");
     commandWorker.Start();
     manualResetEvent = new ManualResetEvent(false);
     cancellationTS   = new CancellationTokenSource();
     locker           = new object();
     Console(INIT);
 }