kazelee
2025-05-30 cbba9b897a865fbf253a03cd818a1044637e8334
util/LogHelper.cs
@@ -68,17 +68,17 @@
            if (logger != null) {
                logger.Error($"{message}{ex.StackTrace}");
            }
        }
        }
        // ------------
        #region DIY
        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
    }