Home Reference Source
public class | source

ConsoleMessage

A thin wrapper around the Runtime.consoleAPICalled event

See:

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private
private
private

Method Summary

Public Methods
public
public

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
public

Identifier of the context where the call was made

public
public

Stack trace captured when the call was made

public
public

Call timestamp

public
public

Type of the call

Private Methods
private

Public Constructors

public constructor(event: Object, argsInit: ConsoleMessageArgsInit) source

Params:

NameTypeAttributeDescription
event Object

Runtime.consoleAPICalled event

argsInit ConsoleMessageArgsInit

An object containing either the The execution context the message was made in or a function to create jsHandles when made in the worker context

Private Members

private _args: Array<JSHandle> source

private _event: Object source

private _location: ConsoleMessage.Location source

private _text: string source

Public Methods

public args(): Array<JSHandle> source

Return:

Array<JSHandle>

public consoleContext(): string source

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

Return:

string (nullable: true)

public executionContextId(): string source

Identifier of the context where the call was made

Return:

string

public location(): Object source

Return:

Object (nullable: true)

public stackTrace(): Object source

Stack trace captured when the call was made

Return:

Object (nullable: true)

public text(): string source

Return:

string

public timestamp(): number source

Call timestamp

Return:

number

public toJSON(): Object source

Return:

Object

public type(): string source

Type of the call

Return:

string

Private Methods

private __init(argsInit: ConsoleMessageArgsInit) source

Params:

NameTypeAttributeDescription
argsInit ConsoleMessageArgsInit