Log Domain
Provides access to log entries.
Methods
Events
Types
Methods
Log.enable #
Enables log domain, sends the entries collected so far to the client by means of the
entryAdded notification.
Log.startViolationsReport #
start violation reporting.
Parameters
config array[ ViolationSetting ]Configuration for violations.
Events
Types
Log.LogEntry #
Log entry.
Type: object
Properties
source stringLog entry source.
Allowed values: xml, javascript, network, storage, appcache, rendering, security, deprecation, worker, violation, intervention, recommendation, other
level stringLog entry severity.
Allowed values: verbose, info, warning, error
text stringLogged text.
categoryOptional
stringAllowed values: cors
timestamp Timestamp when this entry was added.
urlOptional
stringURL of the resource if known.
lineNumberOptional
integerLine number in the resource.
stackTraceOptional
JavaScript stack trace.
networkRequestIdOptional
Identifier of the network request associated with this entry.
workerIdOptional
stringIdentifier of the worker associated with this entry.
argsOptional
array[ Runtime.RemoteObject ]Call arguments.
Log.ViolationSetting #
Violation configuration setting.
Type: object
Properties
name stringViolation type.
Allowed values: longTask, longLayout, blockedEvent, blockedParser, discouragedAPIUse, handler, recurringHandler
threshold numberTime threshold to trigger upon.