Esempio n. 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();
     }
 }
Esempio n. 2
0
 public static bool CreateSubmeterTable(string submeterName)
 {
     try
     {
         LogDB.CreateSubmeterTable(submeterName);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 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);
 }
Esempio n. 5
0
 public List <LogMessage> Query(string beginDate, string endDate, string level, string recorder, string logEnent)
 {
     return(LogDB.GetLogs(level, recorder, logEnent, beginDate, endDate));
 }