Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Consolelogger Clog = new Consolelogger();
     Severity s = Severity.Error;
     Clog.Log(s, "Error");
     Clog.Indent();
     s = Severity.Warning;
     Clog.Log(s, "Warning");
     Clog.Unindent();
     s = Severity.Info;
     Clog.Log(s, "Info");
     Console.Read();
 }
Ejemplo n.º 2
0
 private static void OnCreate(object source, FileSystemEventArgs e)
 {
     Consolelogger Clog = new Consolelogger();
     WatcherChangeTypes wct = e.ChangeType;
     Clog.Log(Severity.Error, wct.ToString()+"  "+e.Name);
 }