In plain words
Logs are the timestamped lines your app writes as it runs, so when something breaks you can see what happened, in what order, and for whom.
Where you see it
A user says checkout failed at 14:02. You open the Logs tab in Vercel or the Logs page in Supabase, filter to that minute and find "No such price: 'price_1Q2w'". Without logs, you and the agent are guessing.
What goes wrong
- Logging secrets and personal data
Printing whole requests puts login tokens and emails into a dashboard your whole team, and your log provider, can read.
console.log("request", req.headers, body); - Log lines with no detail
"something went wrong" or "here 2" tells you that it broke, not what or for whom. Include the action, the record ID and the error message.
- Looking only in the browser console
Server code writes its logs on the host, not in your browser. If the bug is in an API route, the answer is in Vercel or Supabase.
What to tell your agent
Quick check
Sign in to earn +10 XP for itYour API route throws an error, but the browser console shows only "500". Where's the real message?