Documentation ¶
Index ¶
- Constants
- type ClearParams
- type ClearResult
- type DisableParams
- type DisableResult
- type EnableParams
- type EnableResult
- type EntryAddedParams
- type LogEntry
- type StartViolationsReportParams
- type StartViolationsReportResult
- type StopViolationsReportParams
- type StopViolationsReportResult
- type ViolationSetting
Constants ¶
View Source
const Clear = "Log.clear"
Clears the log.
View Source
const Disable = "Log.disable"
Disables log domain, prevents further log entries from being reported to the client.
View Source
const Enable = "Log.enable"
Enables log domain, sends the entries collected so far to the client by means of the `entryAdded` notification.
View Source
const EntryAddedEvent = "Log.entryAdded"
Issued when new message was logged.
View Source
const StartViolationsReport = "Log.startViolationsReport"
start violation reporting.
View Source
const StopViolationsReport = "Log.stopViolationsReport"
Stop violation reporting.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearParams ¶
type ClearParams struct { }
type ClearResult ¶
type ClearResult struct { }
type DisableParams ¶
type DisableParams struct { }
type DisableResult ¶
type DisableResult struct { }
type EnableParams ¶
type EnableParams struct { }
type EnableResult ¶
type EnableResult struct { }
type EntryAddedParams ¶
type EntryAddedParams struct { // The entry. Entry LogEntry }
type LogEntry ¶
type LogEntry struct { // Log entry source. Source string `json:"source"` // Log entry severity. Level string `json:"level"` // Logged text. Text string `json:"text"` // Timestamp when this entry was added. Timestamp runtime.Timestamp `json:"timestamp"` // URL of the resource if known. Url string `json:"url,omitempty"` // Line number in the resource. LineNumber int `json:"lineNumber,omitempty"` // JavaScript stack trace. StackTrace runtime.StackTrace `json:"stackTrace,omitempty"` // Identifier of the network request associated with this entry. NetworkRequestId network.RequestId `json:"networkRequestId,omitempty"` // Identifier of the worker associated with this entry. WorkerId string `json:"workerId,omitempty"` // Call arguments. Args []*runtime.RemoteObject `json:"args,omitempty"` }
Log entry.
type StartViolationsReportParams ¶
type StartViolationsReportParams struct { // Configuration for violations. Config []*ViolationSetting `json:"config"` }
type StartViolationsReportResult ¶
type StartViolationsReportResult struct { }
type StopViolationsReportParams ¶
type StopViolationsReportParams struct { }
type StopViolationsReportResult ¶
type StopViolationsReportResult struct { }
type ViolationSetting ¶
type ViolationSetting struct { // Violation type. Name string `json:"name"` // Time threshold to trigger upon. Threshold float64 `json:"threshold"` }
Violation configuration setting.
Click to show internal directories.
Click to hide internal directories.