dflow apps:logs
Read the tailed pod logs for one application through the API.
dflow apps:logs APP [--follow] [--tail INT] [--container NAME]Flags
--follow optional. --tail optional. --container optional. Globals.
What you see
The terminal prints pod container | line. A bearer token in a line is printed as [redacted]. An empty list prints No logs yet.. --follow with --output json is allowed. Each poll prints JSON. Exit 0: including an empty list. No logs yet. on stdout is success, not a failure. The application keeps running.
When it fails
--tail below 1 or above 1000 exits 1 before a request. The earlier rule that this pair exits 1 is not part of PRD-016. Exit 1: validation. Exit 2: auth, including a 401 during --follow, which stops the poll. Exit 3: not found. Exit 7: SIGINT or SIGTERM during --follow. Exit 10: unreachable.
How is this guide?
Last updated on