How to save all retry attempt failure logs

Hi,
is there any way to save and see all of activity failure logs(stackTrace and stackTrace) not just the last one?

Worker should be logging each activity failure. You can also log any failures in your activity code directly.
If you are asking about event history, specifically ActivityTaskFailed event, yes that would only include failure info of last attempt as Temporal does not record each activity retry in event history.
While your activity is pending (started, not completed yet, but can be retrying) you can also see last attempt failure info in pending activities view in UI or via DescribeWorkflowExecution api)