ppsspp_analyze_log
Filter PPSSPP log files for ERROR, WARNING, and CRASH lines to quickly identify issues during emulator sessions. Optionally apply a keyword for targeted diagnosis.
Instructions
PURPOSE: Filter a PPSSPP log file for ERROR / WARNING / CRASH lines.
USAGE: log_path optional (defaults to the server-mirrored PPSSPP broadcast log at .ppsspp-dfx/output/ppsspp.log, written while a session runs); filter optional (keyword); session_id optional.
BEHAVIOR: READ-ONLY. Reads and filters a log file. Does not contact PPSSPP.
RETURNS: {log_path, matches: [{line_no, text}...], count, filter}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Additional keyword to filter for (in addition to ERROR/WARNING/CRASH). Case-sensitive substring match. | |
| log_path | No | Path to the log file to analyze. S3 whitelist: must be a file under the server-managed .ppsspp-dfx tree (.ppsspp-dfx/output/ or .ppsspp-dfx/config/); arbitrary filesystem paths are rejected. If None, reads the server-mirrored PPSSPP broadcast log (.ppsspp-dfx/output/ppsspp.log — the running game's own ERROR/WARNING lines, captured while a session runs). | |
| session_id | No | Optional session ID (reserved for future use; ignored). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of matches. | |
| filter | Yes | User-supplied keyword filter. | |
| matches | Yes | Matching log lines. | |
| log_path | Yes | Path to the log file (or '(default)' if from launcher). |