From 6b0b9d3bf408980118bd3883e79680d230c15efa Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Mon, 26 Jan 2026 13:44:41 +0100 Subject: [PATCH] about jq and cdp logfile --- website/public/SKILL.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/public/SKILL.md b/website/public/SKILL.md index 2bf23b1..5d5f2d9 100644 --- a/website/public/SKILL.md +++ b/website/public/SKILL.md @@ -99,7 +99,13 @@ playwriter logfile # prints the log file path # typically: /tmp/playwriter/relay-server.log (Linux/macOS) or %TEMP%\playwriter\relay-server.log (Windows) ``` -The log file contains logs from the extension, MCP and WS server together with all CDP events. The file is recreated every time the server starts. For debugging internal playwriter errors, read this file with grep/rg to find relevant lines. +The relay log contains logs from the extension, MCP and WS server. A separate CDP JSONL log is created alongside it (see `playwriter logfile`) with all CDP commands/responses and events, with long strings truncated. Both files are recreated every time the server starts. For debugging internal playwriter errors, read these files with grep/rg to find relevant lines. + +Example: summarize CDP traffic counts by direction + method: + +```bash +jq -r '.direction + "\t" + (.message.method // "response")' /tmp/playwriter/cdp.jsonl | uniq -c +``` If you find a bug, you can create a gh issue using `gh issue create -R remorses/playwriter --title title --body body`. Ask for user confirmation before doing this.