We could capture and collect all logs written during an operation to the activity object. An example of how to catch logs is pytest-capturelog.
assigned to @cemiarni