Oh, the joy of logs. The lifeblood of debugging and the bane of storage. In Prefect, task logs are stored and can be viewed in the UI. However, downloading them directly isn't a built-in feature.
You can, however, implement a custom logging configuration to redirect or duplicate the logs to a file. This would allow you to keep a local copy of the logs that you can access or download at any time.
Here's a
link to a discussion on how to stream Prefect logs to a file.
And remember, logs are like the universe - vast, mostly empty, but every now and then, full of stars... or in this case, errors.