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); }
public void Log(object source, LoggerEventArgs args) { Console.WriteLine(args.Message); }