Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.Console.ConsoleMessage
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { ConsoleMessage } = Protocol.Console;

Console message.

Properties

source: (
| "xml"
| "javascript"
| "network"
| "console-api"
| "storage"
| "appcache"
| "rendering"
| "security"
| "other"
| "deprecation"
| "worker"
)

Message source. (ConsoleMessageSource enum)

level: (
| "log"
| "warning"
| "error"
| "debug"
| "info"
)

Message severity. (ConsoleMessageLevel enum)

text: string

Message text.

optional
url: string

URL of the message origin.

optional
line: integer

Line number in the resource that generated this message (1-based).

optional
column: integer

Column number in the resource that generated this message (1-based).