docs: fix logger API usage (#29961)

This commit is contained in:
Max Schmitt 2024-03-15 19:04:14 +01:00 committed by GitHub
parent 048d6669fd
commit 5d0c61fa0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const { chromium } = require('playwright'); // Or 'firefox' or 'webkit'.
(async () => {
const browser = await chromium.launch({
logger: {
isEnabled: (name, severity) => name === 'browser',
isEnabled: (name, severity) => name === 'api',
log: (name, severity, message, args) => console.log(`${name} ${message}`)
}
});

View File

@ -18340,7 +18340,7 @@ export interface Keyboard {
* (async () => {
* const browser = await chromium.launch({
* logger: {
* isEnabled: (name, severity) => name === 'browser',
* isEnabled: (name, severity) => name === 'api',
* log: (name, severity, message, args) => console.log(`${name} ${message}`)
* }
* });