Пример #1
0
 public void ChangeLogFile()
 {
     lock (this) {
         if (file != null)
         {
             logFiles.Close(file);
         }
         file = logFiles.Open(LogPath(pathFormat), true);
     }
 }
Пример #2
0
 public void ChangeLogFile()
 {
     lock (this) {
         if (file != null)
         {
             logFiles.Close(file);
         }
         var path = LogPath(pathFormat);
         file = logFiles.Open(path, WillAppend(path));
     }
 }
Пример #3
0
 override public void Dispose()
 {
     if (file != null)
     {
         logs.Close(file);
     }
     file = null;
 }