log

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL