Skip to content

Logs & monitoring

gy logs streams your app’s stdout/stderr in real time, so you can debug and monitor without leaving the terminal. Aliases: gy log, gy o.

Terminal window
# Logs for the app in the current directory (auto-detected from .gy.json)
gy logs
# Logs for a specific app by friendly name
gy logs my-cool-api
Terminal window
# Show only the last 50 lines
gy logs --tail 50
# Print recent logs and exit (no follow)
gy logs --no-follow
# Show logs from previous container runs
gy logs --previous
Flag Description
-n, --tail Number of lines to show from the end (default 100)
--follow Follow output continuously (default true)
--no-follow Print recent logs and exit
--previous Show logs from previous container runs
Terminal window
# Watch a deploy finish
gy logs my-api
# Grab the last 200 lines for a support ticket
gy logs my-api --tail 200 --no-follow
# Inspect the previous crashed container
gy logs my-api --previous --no-follow