private void ProcessOnStartup(string fileName, LogEventInfo logEvent) { if (this.ArchiveOldFileOnStartup) { try { this.DoAutoArchive(fileName, logEvent); } catch (Exception exception) { InternalLogger.Warn(exception, "Unable to archive old log file '{0}'.", fileName); if (exception.MustBeRethrown()) { throw; } } } if (this.DeleteOldFileOnStartup) { DeleteOldArchiveFile(fileName); } }