How to debug cron job?

Just started with my first cron job, and I’m curious how I can see the output?

Normally I’d go to the browser and open the API action there, to see what it outputs (either in the network tab or just by loading the URL to the API action itself).

For example:
I have a cron job running every min. It queries the database.
I want to see if this query is outputting the data that I expect:

The web server logs don’t show me the output.

How can I see it?

Community Page
Last updated: