Magman is correct about the logs. I’ve done a number of prebuys that didn't make it past the logbook check. I normally spend about half a day or so going over the books before even looking at the airplane.
On the other hand, most of the ones that pass the records check tend to pass the prebuy evaluation afterwards.