public static void LogError(string text, Exception e = null) => LogEvents.Invoke(null, text, e);
public static void LogError(object source, string text, Exception e = null) => LogEvents.Invoke(source, text, e);
public static void LogError(Exception e) => LogEvents.Invoke(null, e.Message, e);
public static void LogError(object source, Exception e) => LogEvents.Invoke(source, e.Message, e);
private void MakeEvents(string FileName) { FileInfo fi = new FileInfo(FileName); LogEvents?.Invoke(string.Format(fi.FullName)); }