예제 #1
0
 /// <summary>
 /// 删除指定类型旧日志
 ///
 /// 默认删除60天之前的日志
 /// </summary>
 /// <param name="logCategory">LogCategory对象</param>
 public void DeleteOldLog(string logCategory)
 {
     RollingFileAppender.DeleteOldFile(this.filePath, this.holdDays, logCategory);
 }
예제 #2
0
 /// <summary>
 /// 删除所有的旧日志
 ///
 /// 默认删除60天之前的日志
 /// </summary>
 public void DeleteOldLog()
 {
     RollingFileAppender.DeleteOldFile(this.filePath, this.holdDays);
 }