chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.log / LogDomain

LogDomain

class LogDomain

Provides access to log entries.

Official doc

Functions

clear

Clears the log.

suspend fun clear(): Unit

disable

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

suspend fun disable(): Unit

enable

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

suspend fun enable(): Unit

entryAdded

Issued when new message was logged.

fun entryAdded(): Flow<EntryAddedEvent>

events

Subscribes to all events related to this domain.

fun events(): Flow<LogEvent>

startViolationsReport

start violation reporting.

suspend fun startViolationsReport(input: StartViolationsReportRequest): Unit

stopViolationsReport

Stop violation reporting.

suspend fun stopViolationsReport(): Unit