kazelee
2025-06-24 ad56deb081831090408f97b1c73e61a2eaed8657
util/LogHelper.cs
@@ -68,16 +68,16 @@
            if (logger != null) {
                logger.Error($"{message}{ex.StackTrace}");
            }
        }
        }
        #region 自定义方法
        public static void InfoEx(Exception ex) {
            Info($"异常:{ex.Message}");
        }
        public static void InfoApi(string taskType, object model) {
            Info($"触发API:{taskType} " + JsonConvert.SerializeObject(model), "API");
            Info($"发生了异常:{ex.Message}\n{ex.StackTrace}");
        }
        public static void InfoApi(string apiName, object model) {
            Info($"触发API:{apiName} " + JsonConvert.SerializeObject(model), "API");
        }
        #endregion
    }