diff --git a/docs/src/api/class-logger.md b/docs/src/api/class-logger.md index a3a4b7c463..5ab4f3128a 100644 --- a/docs/src/api/class-logger.md +++ b/docs/src/api/class-logger.md @@ -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}`) } }); diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 2521fb4858..d2dbbd0543 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -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}`) * } * });