Retrieving logs (or raw output) for workflows/jobs

How can we retrieve the logs or raw output for workflow jobs?

It’s very time consuming for our engineers to figure out what tests have failed in CI. There’s a lot of menu diving in the CI dashboard before you get to a small log view that has to either be manually searched or downloaded. We need to build a tool to make this practical and not involve using a browser (e.g., via command line or IDE tool).