A downhole tool system includes an electrical submersible pump (ESP) assembly configured to couple to a downhole conveyance that includes a production fluid flow path for a production fluid from a subterranean formation; and a logging sub-assembly directly coupled to a downhole end of the ESP assembly and including a length of logging cable spoolable off a cable spool of the logging sub-assembly within a wellbore.