Logs
Logs help you understand what's happening in your app's backend, like requests, errors, and database activity. You can use them to find out why something isn't working right.
Anyone building an app needs this when they want to check for errors or see how their app is performing.
Do this, in order
- 1
Go to 'More' in your Lovable project, then select 'Cloud', and finally 'Logs'.
This opens the log viewer where you can see all the activity in your app.
- 2
Use the 'Log type' selector to pick which part of your app's activity you want to see, like 'Function logs' for your custom code or 'PostgreSQL logs' for your database.
This helps you focus on specific areas of your app to troubleshoot or monitor.
- 3
Type keywords into the 'Search events' box, choose a time range from the 'time interval selector', or pick a 'status filter' to narrow down the log entries.
These tools help you quickly find specific events or errors among many log entries.
- 4
Click 'Refresh' to see the latest log entries, or 'Show more' at the bottom to view older ones.
Logs don't update automatically, so you need to refresh to see new activity or load more history.
- 5
If you find an error or an interesting log entry, expand it to see its full details, then copy it.
You can then paste this specific log entry into your Lovable project chat to ask for help or an explanation.
Paste this into your project
Here's a log entry from my app: [PASTE LOG ENTRY HERE]. Can you help me understand what happened or fix the problem?
Words decoded
- Backend
- The 'behind-the-scenes' part of your app that handles data, logic, and communication, rather than what users see directly.
- Functions
- Small pieces of code that run specific tasks in your app, often in response to an event.
- Database
- An organized collection of information that your app uses to store and retrieve data.
- Auth
- Short for 'authentication', which is the process of verifying a user's identity, like when they sign in.
- Storage
- Where your app keeps files, like images or documents, that aren't stored in the database.
- Edge Functions
- Special functions that run very close to your users, making your app faster and more responsive for them.
- PostgreSQL
- A popular type of database system used to store and manage your app's data.
- WebSocket connections
- A technology that allows your app and users' browsers to send and receive information instantly and continuously, like for live chat.
- Serverless function
- A piece of code that runs without you having to manage a dedicated server, often used for specific tasks in your app.
Where people get stuck
- Logs do not update in real time; you must click 'Refresh' to see the latest entries.
- Requesting logs too frequently can lead to a 'Rate limit reached' message, requiring you to wait before trying again.
- The default view for projects with the built-in backend (Cloud) is 'Edge logs', so you might need to change the log type to see other activities.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.