How to monitor JavaScript log messages and exceptions with Playwright