[appID] is optional: see how the CLI finds your app.
squarecloud app logs
Usage
Prints the most recent logs of the application and exits.
--follow, lines the application wrote to stderr go to stderr, as with app realtime.
squarecloud app realtime
Usage
Ctrl+C.
- Log lines are printed as the application wrote them. Lines the application wrote to stderr go to stderr, so you can separate them with a redirect.
- The status appears as
[status] <state>only when it changes.
Output
realtime has no JSON output.
When the stream ends
The API ends a live stream after 10 minutes.app realtime and app logs --follow then open it again, with a The stream ended; reconnecting... note on stderr, so they keep running until you press Ctrl+C. They stop with an error when 3 reopens in a row bring no logs or status: check the application’s status and try again.
Related
For edge request logs of a website, see
squarecloud app network logs.
