I only see the output from the XCTest itself.
Xcode: Version 15.2 (15C500b)
The generally recommended way to get logs (and other attachments) to appear in your result is to use XCTContext.runActivity: https://developer.apple.com/documentation/xctest/xctcontext/2923506-runactivity
This will let you print the activity in your result, and will wrap child activities/other actions within it in the result
You can also add attachments (like snippets of text) to the activity using the XCTAttachment API's https://developer.apple.com/documentation/xctest/activities_and_attachments/adding_attachments_to_tests_activities_and_issues
Hope this is helpful!