Check if logsToAdd amount exceeds file capacity before merge stored and in-memory logs;