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