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