add cdp jsonl logging and update log docs

This commit is contained in:
Tommy D. Rossi
2026-01-26 13:28:18 +01:00
parent 4d2606253b
commit a64fc2d8a0
9 changed files with 156 additions and 7 deletions
+7 -1
View File
@@ -247,7 +247,13 @@ playwriter logfile # prints the log file path
# typically: /tmp/playwriter/relay-server.log (Linux/macOS)
```
The log file contains extension, MCP and WebSocket server logs with all CDP events. It's recreated on each server start.
The relay log contains extension, MCP and WebSocket server logs. A separate CDP JSONL log is also created alongside it (see `playwriter logfile`). Both are recreated on each server start.
Example: summarize CDP traffic counts by direction + method:
```bash
jq -r '.direction + "\t" + (.message.method // "response")' /tmp/playwriter/cdp.jsonl | uniq -c
```
## Known Issues