Logs
Logs
The diary your site keeps while it runs. It records when, who, and what happened, and where errors occurred.
💡 It's an airplane's black box. When something goes wrong, you look at the record to find the cause.
🤖 Say this to your AI
[Feature] fails on the live site. Tell me where to find the logs in my hosting service, and add console.error logs at the important spots so the cause is easy to find. Don't log any secret values.
The key word is ‘Logs’. Including it helps AI understand you much more precisely.
📌 Good to know
Never log passwords or API keys. More people can see logs than you might think.
When to use it
- When errors happen only on the live site
- When all you see is 'Server error (500)' with no reason
- When the AI says 'please check the logs'
Also called: log, logs, server log, server logs, runtime logs, console.error, sentry, monitoring, error logs