Read game logs
read_logsInspect Bannerlord mod logs from rgl_log and crash files to debug errors, exceptions, and XML issues; list recent logs or view tails and grep matches.
Instructions
Reads Bannerlord's logs to debug a mod: rgl_log_*.txt (main log), rgl_log_errors_*.txt, launcher and crash files under ProgramData and Documents. action=list shows recent files; action=read (default) shows the tail of the latest log or matches of grep / errors_only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | latest (default), latest-errors, launcher, a file name from action=list, or a full path inside a log folder. | |
| grep | No | Regex or text to filter lines (case-insensitive), e.g. your module id or 'xml'. | |
| tail | No | Max lines/matches to return (default 120, max 1000). | |
| action | No | read (default) or list. | |
| context | No | Context lines around matches (default 0, max 10). | |
| errors_only | No | Only lines that look like errors/exceptions (default false). |