# benchweave logs


Tail the named log destination for this data directory.


``` bash
benchweave logs [OPTIONS]
```


Resolution: the pidfile's log_destination field (a path, the journal via journalctl, or a typed stderr refusal), else the

.log sibling post-mortem. The credential file is refused as a destination even when named. No -follow (deferred -- tail -f / journalctl -f exist).

:::

<span class="gd-details-chevron" aria-hidden="true"></span>Full --help output


    Usage: benchweave logs [OPTIONS]

      Tail the named log destination for this data directory.

      Resolution: the pidfile's log_destination field (a path, the journal via
      journalctl, or a typed stderr refusal), else the <dir>.log sibling post-
      mortem. The credential file is refused as a destination even when named. No
      --follow (deferred -- tail -f / journalctl -f exist).

    Options:
      --data-dir PATH  At-rest data directory (holds state.sqlite + content/).
                       [required]
      --lines INTEGER  Lines to tail (a positive integer; the windowed read bounds
                       the IO).  [default: 50]
      --json           Emit the stable machine JSON contract instead of text.
      --help           Show this message and exit.


# Options


`--data-dir: PATH`  
**Required.** At-rest data directory (holds state.sqlite + content/). Environment variable: `BENCHWEAVE_DATA_DIR`.

`--lines: INTEGER = 50`  
Lines to tail (a positive integer; the windowed read bounds the IO).

`--json`  
Emit the stable machine JSON contract instead of text.
