public static void Error(ILogSource loggr, RestServiceException ex, string msg, bool showInnerException = true) { if (msg.IsBlank()) { msg = "Http Error {0} : {1}".f((int)ex.Code, ex.Code); } //var line1 = loggr.Title; var line2 = showInnerException ? ex.Details(false, false) : "\t" + ex.Message; //loggr.Title = line1; loggr.Error_n("Error encountered", msg + L.F + line2); }
public static void Err(ILogSource loggr, Exception ex) { loggr.Error_n("Unhandled server error.", ex.Details(true, true)); //loggr.Error_n(L.F + ex.Details(), ""); //loggr.Error_n(ex.ToString(), ""); }
public static void Err(ILogSource loggr, Exception ex) { loggr.Error_n("Unhandled server error.", ex.Details(true, true)); //loggr.Error_n(L.F + ex.Details(), ""); //loggr.Error_n(ex.ToString(), ""); }