public static void Exception(Exception ex, string msg = null) { var appInfo = new MyCustomLog() { ClassFullName = ex.Source, MethodName = ex.TargetSite?.Name ?? string.Empty, Message = msg ?? ex.StackTrace, Level = Jns.BasicService.Log.LogLevel.Error, AppName = appName, }; storageServer.Save(appInfo); }
public static void Exception(string className, string methodName, string input, string output, string msg) { var appInfo = new MyCustomLog { ClassFullName = className, MethodName = methodName, Input = input, Output = output, Message = msg, Level = Jns.BasicService.Log.LogLevel.Error, AppName = appName }; storageServer.Save(appInfo); }