Exemple #1
0
 //将日志保存到文件中
 internal static ExeResEdm WriteLogToFile <T>(T model, MQType mqType)
 {
     return(WriteModelToFile(model, mqType.ToString(), FileType.File));
 }
Exemple #2
0
 //将日志备份数据以json格式写入到文件中,以便以后读取到appender中
 public static void WriteBackupLogToFile <T>(T model, MQType mqType)
 {
     WriteModelToFile(model, mqType.ToString(), FileType.Backup);
 }