Log Domain
Provides access to log entries.
Methods
Events
Types
Methods
Log.clear #
Clears the log.
Log.disable #
Disables log domain, prevents further log entries from being reported to the client.
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.
Log.stopViolationsReport #
Stop violation reporting.
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
-
string
Allowed Values:
cors
- timestamp
-
Runtime.Timestamp
Timestamp when this entry was added.
- url
-
string
URL of the resource if known.
- lineNumber
-
integer
Line number in the resource.
- stackTrace
-
Runtime.StackTrace
JavaScript stack trace.
- networkRequestId
-
Network.RequestId
Identifier of the network request associated with this entry.
- workerId
-
string
Identifier of the worker associated with this entry.
- args
-
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.