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.
Stream logs
Section titled “Stream logs”# Logs for the app in the current directory (auto-detected from .gy.json)gy logs
# Logs for a specific app by friendly namegy logs my-cool-apiControl the output
Section titled “Control the output”# Show only the last 50 linesgy logs --tail 50
# Print recent logs and exit (no follow)gy logs --no-follow
# Show logs from previous container runsgy 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 |
Examples
Section titled “Examples”# Watch a deploy finishgy logs my-api
# Grab the last 200 lines for a support ticketgy logs my-api --tail 200 --no-follow
# Inspect the previous crashed containergy logs my-api --previous --no-follow