# Find your plugin log

Where the plugin writes its log on each operating system, what it contains, and how to add detail or keep code out of it.

The plugin writes a log file on your machine. It records each turn the plugin handled and every reason a review was skipped, so it is the first thing to check when a turn was not reviewed.

## Where it is

| System | Location |
|---|---|
| macOS | `~/Library/Application Support/leoprevent/client.log` |
| Linux | `~/.config/leoprevent/client.log` |
| Windows | `%AppData%\leoprevent\client.log` |

The log is one JSON entry per line.

## What it contains

> **Note:** The log stays on your machine and includes the code from each review. Check it before you share it.

To keep code, prompts and findings out of the log, ask your agent:

```text
Make sure LEOPREVENT_AUDIT=0 is set in the environment this agent starts from, so it applies to every new session. Show me where you set it.
```

To set it yourself, add `LEOPREVENT_AUDIT=0` to the environment your agent starts from, such as your shell profile, then start a new agent session. See [Plugin settings](https://help.leotrace.io/plugin-settings/).

## Add more detail

Ask your agent:

```text
Set LEOPREVENT_DEBUG=1 in the environment this agent starts from, and tell me when it is set. I will remove it once the problem is found.
```

Then start a new agent session and repeat the turn. To set it yourself, add `LEOPREVENT_DEBUG=1` the same way as above. Remove it afterwards, because it makes the log grow quickly.

## Sharing it with support

Send the lines around the time of the problem, not the whole file, and remove any code you do not want to share. See [Contact support](https://help.leotrace.io/contact-support/).

Source: https://help.leotrace.io/find-your-plugin-log/ (updated 2026-11-19)
