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#
To keep code, prompts and findings out of the log, ask your agent:
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.
Add more detail#
Ask your agent:
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.