Based on my search, it seems that you can access log records via the Prefect API. Here are some resources that might be helpful:
1.
API Reference - Prefect Docs: This is the main API documentation for Prefect. It might contain more detailed information about accessing logs.
2.
Logging - Prefect Docs: This guide talks about how you can view and filter logs in the Prefect UI or Prefect Cloud, or access log records via the API. It also discusses how to customize log levels for flows and tasks.
3.
Audit Log - Prefect Docs: This page provides information about the Audit Log feature in Prefect.
If you're still having trouble accessing the logs programmatically, it might be helpful to reach out to the Prefect community or support for more specific guidance.