VueWebApi/Tools/LogHelper.cs
@@ -1,4 +1,5 @@ using System; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; @@ -46,5 +47,14 @@ log.Error(message); } #endregion #region public static void WriteLogData2(string aa) { var request = HttpContext.Current.Request; log4net.ILog log = log4net.LogManager.GetLogger("日志记录"); log.Error(JsonConvert.SerializeObject(aa)); } #endregion } }