Methods

Chrome DevTools

Log.clear #

Clears the log.


React NativeChrome DevTools

Log.disable #

Disables log domain, prevents further log entries from being reported to the client.


React NativeChrome DevTools

Log.enable #

Enables log domain, sends the entries collected so far to the client by means of the entryAdded notification.


Chrome DevTools

Log.startViolationsReport #

start violation reporting.

Parameters

config
array[ ViolationSetting ]

Configuration for violations.


Chrome DevTools

Log.stopViolationsReport #

Stop violation reporting.

Events

React NativeChrome DevTools

Log.entryAdded #

Issued when new message was logged.

Parameters

entry
LogEntry

The entry.

Types

Chrome DevTools

Log.LogEntry #

Log entry.

Type: object

Properties

source
string

Log entry source.

Allowed values: xml, javascript, network, storage, appcache, rendering, security, deprecation, worker, violation, intervention, recommendation, other

level
string

Log entry severity.

Allowed values: verbose, info, warning, error

text
string

Logged text.

category
Optional
string

Allowed values: cors

timestamp
Runtime.Timestamp

Timestamp when this entry was added.

url
Optional
string

URL of the resource if known.

lineNumber
Optional
integer

Line number in the resource.

stackTrace
Optional
Runtime.StackTrace

JavaScript stack trace.

networkRequestId
Optional
Network.RequestId

Identifier of the network request associated with this entry.

workerId
Optional
string

Identifier of the worker associated with this entry.

args
Optional
array[ Runtime.RemoteObject ]

Call arguments.


Chrome DevTools

Log.ViolationSetting #

Violation configuration setting.

Type: object

Properties

name
string

Violation type.

Allowed values: longTask, longLayout, blockedEvent, blockedParser, discouragedAPIUse, handler, recurringHandler

threshold
number

Time threshold to trigger upon.