public DebugModel(Exception ex) { _logName = ex.GetType().FullName; this.message = ex.Message; this.trace = ex.StackTrace; this.hresult = ex.HResult; this.source = ex.Source; //this.target = ex.TargetSitetarget; if (ex.InnerException != null) { this.inner = InnerException(ex.InnerException); } }
public static void Save(string message) { var model = new DebugModel(message); KCore.Stored.Online.Save(model); }
/// <summary> /// Save the details of exception on extern database /// </summary> /// <param name="ex"></param> /// <param name="table"></param> public static void Save(Exception ex) { var model = new DebugModel(ex); KCore.Stored.Online.Save(model); }