# `cli.logs_arguments`

A `jadpo logs` command is given something it doesn't take, or a filter or level it can't read.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

`jadpo logs` lists the events `jadpo dev` keeps of your app's logs, chosen by its filters and `--level`. A filter it can't read would choose nothing, or
everything, without saying so.

## What it looks like

`--level` is given a word that isn't one of OpenTelemetry's six levels:


```sh
jadpo logs --level warning
```

```text
error: `warning` isn't a level
  reason: A log's level is one of OpenTelemetry's six: `trace`, `debug`, `info`, `warn`, `error` or `fatal`.
  next: Give a level such as `--level warn` (agent)
  rule: cli.logs_arguments
  help: https://jadpo.dev/docs/errors/cli.logs_arguments
```

`(agent)` at the end of the `next:` line means your coding agent can make
the fix itself.

## How to fix it

**If you meant warnings**, give the level as `LogLevel` names it:

```sh
jadpo logs --level warn
```

It now lists only the events at `warn` or above.

## Related

- [Traces, metrics and logs in development](/docs/traces-metrics-and-logs-in-development.md)
- [`jadpo traces`, `jadpo metrics` and `jadpo logs`](/docs/commands-for-services-calls-email-and-stored-data.md#jadpo-traces-jadpo-metrics-and-jadpo-logs)
