摘要:
第一种:全局异常处理1.首先常见保存异常的类(就是将异常信息写入到文件中去) public class LogManager { private string logFilePath = string.Empty; public LogManager(string logFilePath) { this.logFilePath = logFilePath; FileInfo file = new FileInfo(logFilePath); if (!file.Exists) { file.Create().Close... 阅读全文
摘要:
阅读全文