MessageDetails

external interface MessageDetails(source)

Properties

Link copied to clipboard
abstract external var level: Double

The log level, from 0 to 3. In order it matches verbose, info, warning and error.

Link copied to clipboard
abstract external var lineNumber: Double

The line number of the source that triggered this console message

Link copied to clipboard
abstract external var message: String

The actual console message

Link copied to clipboard
abstract external var source: MessageDetailsSource

The type of source for this message. Can be javascript, xml, network, console-api, storage, rendering, security, deprecation, worker, violation, intervention, recommendation or other.

Link copied to clipboard
abstract external var sourceUrl: String

The URL the message came from

Link copied to clipboard
abstract external var versionId: Double

The version ID of the service worker that sent the log message