When using Docker you can view the web and database servers logs in real time. These are useful for finding problems in your app.
Accessing Web and Database Servers Logs
You can find the real-time logs in the bottom panel:
Open the Dropdown next to the Terminal:
And you will find the Web Server Logs and Database Server Logs there at the bottom of the dropdown:
Let’s select Web Server Logs:
Here you can find information about what’s happening on the server. You can also see the errors returned by your API Actions (Server Actions), when debug is enabled there.
Here’s how an error returned by one of our API Actions looks like:
Other information, such as restarting the NodeJS server when a file has been saved will also be displayed here:
That’s how you can debug your Docker apps using real-time logs.