2025年2月4日

动态改变 log4net 日志位置

摘要: private static void changeLogFileLocation() { var logPath = ProfileHelper.GetLogPath(); // 获取当前的日志记录器 var hierarchy = (Hierarchy)LogManager.GetReposit 阅读全文

posted @ 2025-02-04 12:23 空明流光 阅读(70) 评论(0) 推荐(0)

winform 无窗体保持消息循环

摘要: static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetC 阅读全文

posted @ 2025-02-04 11:44 空明流光 阅读(16) 评论(0) 推荐(0)

导航