Docker Debugging with Real-Time Logs

Intro

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.

3 Likes

Great addition. :+1:
Does this load the complete log or just from past few minutes?

Found this in the release notes:
Limit the real time logs to the last 1000 lines only

Probably best to add this to the top of this post.

2 Likes