src/domains/log

This module provides a direct mapping of CDP events and commands for v1.3 (stable) of the Log Domain.

Provides access to log entries.

Types

Log {.pure.} = enum
  entryAdded = "Log.entryAdded"
Log Domain events

Procs

proc clear(context: Browser | Tab): owned(Future[void]) {....stackTrace: false.}

Log.clear

Clears the log.

proc disableLogDomain(context: Browser | Tab): owned(Future[void]) {.
    ...stackTrace: false.}

Log.disable

Disables log domain, prevents further log entries from being reported to the client.

proc enableLogDomain(context: Browser | Tab): owned(Future[void]) {.
    ...stackTrace: false.}

Log.enable

Enables log domain, sends the entries collected so far to the client by means of the entryAdded notification.

proc startViolationsReport(context: Browser | Tab; config: JsonNode): owned(
    Future[void]) {....stackTrace: false.}

Log.startViolationsReport

start violation reporting.

proc stopViolationsReport(context: Browser | Tab): owned(Future[void]) {.
    ...stackTrace: false.}

Log.stopViolationsReport

Stop violation reporting.