We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
browser
browser:err
Context:
Code Snippet
I was expecting to see errors in launching the browser with this logger sink. However, this does not show logs in the browser:err namespace.
const { webkit } = require('playwright'); (async () => { const browser = await webkit.launch({ logger: { isEnabled: (name, severity) => name === 'browser', log: (name, severity, message, args) => console.log(`${name} ${message}`) }}); await browser.close(); })();
Using this with DEBUG=* shows the errors.
DEBUG=*
The text was updated successfully, but these errors were encountered:
That's kind of intended. Does name startsWith("browser") work for you?
Sorry, something went wrong.
startsWith works for me. I thought the err was for severity and not the name, hence the confusion.
startsWith
err
Browser's stderr can be noisy, so we actually dispatch it as a warning severity :-)
stderr
No branches or pull requests
Context:
Code Snippet
I was expecting to see errors in launching the browser with this logger sink. However, this does not show logs in the
browser:err
namespace.Using this with
DEBUG=*
shows the errors.The text was updated successfully, but these errors were encountered: