private void LogCaller(LoggerEventArgs args) { string eMessage = String.Empty; if (args.Exception != null) { eMessage = args.Exception.Message; } AddLog(new Log(args.LogType, args.Message, (Exception)args.Exception)); OnLog?.Invoke(this, args); }
private void LogCaller(LoggerEventArgs args) { string eMessage = String.Empty; if (args.Exception != null) { eMessage = args.Exception.Message; } AddLog(new Log(args.LogType, args.Message, eMessage)); LoggerHandler caller = OnLog; if (caller != null) { caller(this, args); } }