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