private static void _listener_MessageLogged(object sender, LogEventArgs e) { if (_logging) { Console.WriteLine(e.Message); } }
void listener_LogMessage(object sender, LogEventArgs e) { Log(e.Message); }