I’m working on a project where the backend is mostly Python, frontend is React / Next.js with ShadCN, and I’m using Supabase for auth + database.
Right now, my logs are very detailed, but Cursor doesn’t seem to understand them well when I ask it to debug issues. It often misses the relevant parts or doesn’t follow the trace logically.
So I have a few questions:
-
Is there a preferred logging format or style that makes Cursor’s AI understand logs better?
-
Should I be using structured logging (e.g., JSON logs) instead of plain print logs?
-
Are there any recommended libraries for Python logging that AI agents parse more clearly (e.g., loguru, structlog, or standard logging with custom formatters)?
-
Do people pipe logs to something like Logtail, Sentry, or Supabase logs and then reference them to Cursor? Or keep everything local?
My goal is simply:
When I paste logs into Cursor, I want the AI to quickly identify where the failure is happening and why.