How to get logs from a CI service that fails to start?

How to get logs from a CI service that fails to start?

If you start postgres or dind with your CI job:

docker:
  stage: build
  services:
    - docker:dind

and if that service fails, is there a way to locate logs or stdout/err from that service?