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
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
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
JavaScript stack trace.
networkRequestId
Optional
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.
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.