How to collect the Gitlab CI pipeline logs

How to collect the Gitlab CI pipeling logs about the jobs, stages in any tool or storing it in any runner or docker?