public static void TraceError(this ITracingService tracingService, Exception exception) { tracingService.Trace($"[Error] {exception.Source}:{exception.Message}\r\n{exception.StackTrace}\r\n"); if (exception.InnerException != null) { tracingService.TraceError(exception.InnerException); } }