You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug - above + detailed info including AI conversations, browser actions, etc
Example outputs per level:
# error
✗ Login Flow
Error: Element not found
# warn
⚠ Deprecated: --debug-ai flag, use --log-level=debug instead
✗ Login Flow
Error: Element not found
# info (default)
File: login.test.ts
✓ Login Flow (2.1s)
✗ Logout Flow
Error: Element not found
# debug
File: login.test.ts
Test: Login Flow
AI: Navigating to login page
Prompt: "Click the login button"
Response: "Looking for login button..."
Browser: Clicking login button at (120, 50)
Currently debugging relies on a simple —debug-ai flag. We need a more robust logging system that follows standard practices and integrates well with CI.
The text was updated successfully, but these errors were encountered:
This is awesome! We should perhaps also add an ESLint plugin to make sure everyone uses our Logger instead of console.log. That'll keep our logging clean and tidy. Plus, if we log an error that's our fault, we can add a friendly message asking the user to report the bug on GitHub. This'll make it super easy for them to help us fix it
What
Log levels
error
- test failures and critical issueswarn
- above + non-critical issues, deprecationsinfo
- above + test progress (default)debug
- above + detailed info including AI conversations, browser actions, etcExample outputs per level:
CLI usage
Make --debug-ai an alias for --log-level=debug with a
warn
message for future deprecationTest result tracking
Logger will track:
Log format
Normal output (info/warn/error):
Debug output:
CI output:
Log Grouping
Example hierarchy:
GitHub Actions integration
Summary output
Normal output:
CI output:
Implementation
Atomic PRs
Resources
Why
Currently debugging relies on a simple
—debug-ai
flag. We need a more robust logging system that follows standard practices and integrates well with CI.The text was updated successfully, but these errors were encountered: