# `jadpo logs`

List the log events jadpo dev kept.

Lists the events the app logged under `jadpo dev` (area 17), oldest first: each one's time, level, event, request and fields, which never hold a value the log's rules hash. `--level` lists events from that level up; the other filters choose the requests whose events are listed; `--follow` keeps printing as new ones arrive.

```text
jadpo logs
```

## Flags

- `--route <route>`: Only this route's requests
- `--action <action>`: Only the requests that ran this action
- `--domain <domain>`: Only those that ran this domain's code
- `--failure <code>`: Only those that failed with this code
- `--slower-than <duration>`: Only those slower than this, such as 200ms
- `--request <id>`: Only the request whose id starts so
- `--follow`: Keep printing as new ones arrive
- `--level <level>`: Only events at this level up, such as warn

## On every command

- `--json`: Print data for tools instead of text
- `--full`: Show everything a report shortens
- `--help`: Show every flag, with examples
- `--color <when>`: Choose when to use colour

`jadpo logs --json` writes one JSON document to standard output instead of text, with the same exit code. The document has `schemaVersion`, `command` (`"logs"`), `ok`, `data` (what the command produced, `null` when it failed) and `diagnostics` (each error with its `rule`, `reason`, `next` and `help`). A command that needs a terminal refuses `--json` and names the flags that do the same job.

## Examples

```text
# See what the app logged
jadpo logs
# See what should be looked at
jadpo logs --level warn
```

## Errors

- [`cli.logs_arguments`](/docs/errors/cli.logs_arguments.md): A `jadpo logs` command is given something it doesn't take, or a filter or level it can't read
- [`toolchain.project_not_found`](/docs/errors/toolchain.project_not_found.md): You ran a command that works on a project in a folder with no `app.jadpo`, in it or in any folder above it
