public void Log(object source, LoggerEventArgs args)
 {
     using (var writer = File.AppendText("log.txt"))
     {
         writer.WriteLine($"{args.Message}");
     }
 }
 protected virtual void OnPrintAction(object source, LoggerEventArgs args)
 {
     PrintAction(source, args);
 }
Example #3
0
 public void Log(object source, LoggerEventArgs args)
 {
     Console.WriteLine(args.Message);
 }