From 70e0f3410415b33ccaaf1e6f758a0f2c4affd4c6 Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期四, 29 六月 2023 15:20:24 +0800 Subject: [PATCH] 凯贝奈特网页版:增加 工艺路线历史列表Gy_RoutingBillList_His --- WebAPI/LogService.cs | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/WebAPI/LogService.cs b/WebAPI/LogService.cs index 9168f4d..7762f83 100644 --- a/WebAPI/LogService.cs +++ b/WebAPI/LogService.cs @@ -11,7 +11,23 @@ public class LogService { private static readonly object lockObj = new object(); - + + public static void WriteAsync(object obj, string filePath = "Vlog", bool isAppend = true) + { + Task.Run(() => + { + Write(obj, filePath, isAppend); + }); + } + + public static void WriteAsync<T>(object obj, string filePath = "Vlog", bool isAppend = true) + { + Task.Run(() => + { + Write(obj, $@"{filePath}\{typeof(T).Name}", isAppend); + }); + } + #region 鏃ュ織 public static void Write(object obj, string filePath = "Vlog", bool isAppend = true) { -- Gitblit v1.9.1