Log
Provides access to log entries.
Dependencies: Runtime, Network
No symbols match your filter.
Commands
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
| Name | Type | Description |
|---|---|---|
config
|
array<ViolationSetting> |
Configuration for violations. |
Log.stopViolationsReport
Stop violation reporting.
Events
Log.entryAdded
Issued when new message was logged.
Parameters
| Name | Type | Description |
|---|---|---|
entry
|
LogEntry |
The entry. |
Types
LogEntry
(object)
Log entry.
Properties
| Name | Type | Description |
|---|---|---|
source
|
string |
Log entry source. |
level
|
string |
Log entry severity. |
text
|
string |
Logged text. |
category
(optional) |
string |
|
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. |
ViolationSetting
(object)
Violation configuration setting.
Properties
| Name | Type | Description |
|---|---|---|
name
|
string |
Violation type. |
threshold
|
number |
Time threshold to trigger upon. |