Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface Protocol.Runtime.ConsoleAPICalledEvent
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { ConsoleAPICalledEvent } = Protocol.Runtime;

Issued when console API was called.

Properties

type: (
| "log"
| "debug"
| "info"
| "error"
| "warning"
| "dir"
| "dirxml"
| "table"
| "trace"
| "clear"
| "startGroup"
| "startGroupCollapsed"
| "endGroup"
| "assert"
| "profile"
| "profileEnd"
| "count"
| "timeEnd"
)

Type of the call. (ConsoleAPICalledEventType enum)

args: RemoteObject[]

Call arguments.

executionContextId: ExecutionContextId

Identifier of the context where the call was made.

timestamp: Timestamp

Call timestamp.

optional
stackTrace: StackTrace

Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.

optional
context: string

Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.