| | |
| | | using System; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | |
| | | log.Error(message); |
| | | } |
| | | #endregion |
| | | |
| | | #region |
| | | public static void WriteLogData1(string aa) |
| | | { |
| | | var request = HttpContext.Current.Request; |
| | | string message = aa; |
| | | log4net.ILog log = log4net.LogManager.GetLogger("日志记录"); |
| | | 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 |
| | | } |
| | | } |