Example #1
0
 public static void Write(string level, string thread, string ip, string recorder, string _event, string message, string date)
 {
     try
     {
         LogDB.Write(level, thread, ip, recorder, _event, message, date);
     }
     catch (Exception ex)
     {
         //LogManager.ResetConfiguration();
     }
 }
Example #2
0
 public static bool CreateSubmeterTable(string submeterName)
 {
     try
     {
         LogDB.CreateSubmeterTable(submeterName);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Example #3
0
 public static void Write(string level, string thread, string ip, string recorder, string _event, string message, string date)
 {
     try
     {
         LogDB.Write(level, thread, ip, recorder, _event, message, date);
     }
     catch (Exception ex)
     {
         Console.WriteLine("写入日志时发生异常:" + ex.ToString());
         //LogManager.ResetConfiguration();
     }
 }
Example #4
0
 public void Write(string level, string thread, string ip, string recorder, string _event, string message, DateTime date)
 {
     LogDB.Write(level, thread, ip, recorder, _event, message, date);
 }
Example #5
0
 public List <LogMessage> Query(string beginDate, string endDate, string level, string recorder, string logEnent)
 {
     return(LogDB.GetLogs(level, recorder, logEnent, beginDate, endDate));
 }