azd app logs
View logs from running services with filtering and follow support.
Usage
azd app logs [flags]Flags
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--follow | -f | bool | false | Follow log output (tail -f behavior) |
--service | -s | string | - | Filter by service name(s) (comma-separated) |
--tail | -n | int | 100 | Number of lines to show from the end |
--since | - | string | - | Show logs since duration (e.g., 5m, 1h) |
--timestamps | - | bool | true | Show timestamps with each log entry |
--no-color | - | bool | false | Disable colored output |
--level | - | string | all | Filter by log level (info, warn, error, debug, all) |
--format | - | string | text | Output format (text, json) |
--file | - | string | - | Write logs to file instead of stdout |
--exclude | -e | string | - | Regex patterns to exclude (comma-separated) |
--no-builtins | - | bool | false | Disable built-in filter patterns |
Examples
azd app logs [flags]azd app logsazd app logs --followazd app logs --service web,apiazd app logs --tail 50azd app logs --since 5mazd app logs --level errorazd app logs --format jsonazd app logs --file debug.logazd app logs --timestamps=false📚 Detailed Documentation
For complete documentation including flows, diagrams, and advanced usage, see the full command specification.
View full logs specification →