import ConsoleMessage from 'chrome-remote-interface-extra/lib/ConsoleMessage.js'
ConsoleMessage
A thin wrapper around the Runtime.consoleAPICalled event
Constructor Summary
Public Constructor | ||
public |
constructor(event: Object, argsInit: ConsoleMessageArgsInit) |
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.*):
|
|
public |
Identifier of the context where the call was made |
|
public |
|
|
public |
stackTrace(): Object Stack trace captured when the call was made |
|
public |
|
|
public |
Call timestamp |
|
public |
|
|
public |
Type of the call |
Private Methods | ||
private |
__init(argsInit: ConsoleMessageArgsInit) |
Public Constructors
public constructor(event: Object, argsInit: ConsoleMessageArgsInit) source
Params:
Name | Type | Attribute | Description |
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 _location: ConsoleMessage.Location source
Public Methods
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
Private Methods
private __init(argsInit: ConsoleMessageArgsInit) source
Params:
Name | Type | Attribute | Description |
argsInit | ConsoleMessageArgsInit |