public static void WriteToFile(string methodName, string folder, Exception exception) { string ex = GetExceptionDetail(methodName, exception); AsynLogHelper log = new AsynLogHelper(path + "log/" + folder + "/"); log.WriteEntry(methodName, ex); }
public static void WriteException(string methodName, Exception exception, object requestParam) { string ex = GetExceptionDetail(methodName, exception, JsonHelper.ReBuilder(requestParam)); AsynLogHelper log = new AsynLogHelper(path + "log/exception/"); log.WriteEntry(methodName, ex); }
public static void WriteToFile(string methodName, string module, string message) { AsynLogHelper log = new AsynLogHelper(path + "log/" + module + "/"); log.WriteEntry(methodName, message); }