Details of a console message logged by the page’s JavaScript.

Definition

object ConsoleMessage {
  args: [JSON]
  location: ConsoleMessageLocation
  stackTrace: [ConsoleMessageLocation]
  text: String
  type: String
}

Fields

args: [JSON]

Arguments passed to the console function (e.g., console.log(arg1, arg2)).

location: ConsoleMessageLocation

Location in the source code where the console message originated.

stackTrace: [ConsoleMessageLocation]

Stack trace if the console message was part of an error or warning.

text: String

The text of the console message.

type: String

The type of console message (e.g., ‘log’, ‘warning’, ‘error’, ‘info’, ‘debug’).