# olef log

Source: https://olef.dev/docs/reference/cli/log

Generated from **Olef 3.0.2**. [All commands](https://olef.dev/docs/reference/commands) · [Capabilities and requirements](https://olef.dev/docs/reference/capabilities)

These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the [command catalog](https://olef.dev/docs/reference/commands#global-options).

## olef log

Structured, bounded logcat: app-scoped JSON log lines with crash/ANR blocks parsed out, windowed (`--last 60s`) and deduplicated. Works without the on-device server

```bash
olef log --help
```

Output: **jsonl**.

| Argument | Description |
| --- | --- |
| `--app <APP>` | App package or config alias to scope to (default: the configured app; `--all` for every process) |
| `--all` | Include every process (ignore the configured default app) |
| `--level <LEVEL>` | Minimum level: v, d, i, w, e, or f (default: everything) Values: `v`, `d`, `i`, `w`, `e`, `f`. |
| `--tag <TAG>` | Only lines whose tag contains this (repeatable; case-insensitive) |
| `--grep <GREP>` | Only lines whose tag or message matches this regex |
| `--last <LAST>` | How far back to look: a duration like 30s, 5m, 2h (default 60s) Default: `60s`. |
| `--max <MAX>` | Maximum log entries to emit after filtering (most recent kept) Default: `100`. |
| `--buffer <BUFFER>` | Logcat buffers to read (comma-separated: main, system, crash, events) Default: `main,system,crash`. |
| `--no-dedup` | Keep consecutive duplicate lines instead of collapsing them with a `repeat` count |
