void LogRotate(LoggerLogLevel type) { string fileName = LogFilePaths[type]; var logFile = new FileInfo(fileName); UnityEngine.Debug.AssertFormat(logFile.Exists, "Logfile {0} has to exist", fileName); // 0 size means, do not rotate if (LogRotateSize > 0 && logFile.Length >= 1024 * LogRotateSize) { logFile.Archive(); } }