Table of Contents

Class LogEntry

Namespace
WebDriverBiDi.Log
Assembly
WebDriverBiDi.dll

Represents a log entry in the browser.

[JsonConverter(typeof(DiscriminatedUnionJsonConverter<LogEntry>))]
[DiscriminatedTypeProperty("type", UnmatchedValueType = typeof(GenericLogEntry))]
[DiscriminatedDerivedType(typeof(ConsoleLogEntry), "console")]
[DiscriminatedDerivedType(typeof(JavaScriptLogEntry), "javascript")]
public class LogEntry
Inheritance
LogEntry
Derived
Inherited Members

Properties

EpochTimestamp

Gets the timestamp as the total number of milliseconds elapsed since the start of the Unix epoch (1 January 1970 12:00AM UTC).

[JsonPropertyName("timestamp")]
[JsonRequired]
[JsonInclude]
public ulong EpochTimestamp { get; }

Property Value

ulong

Level

Gets the log level of the log entry.

[JsonPropertyName("level")]
[JsonRequired]
[JsonInclude]
public LogLevel Level { get; }

Property Value

LogLevel

Source

Gets the source of the log entry.

[JsonPropertyName("source")]
[JsonRequired]
[JsonInclude]
public Source Source { get; }

Property Value

Source

StackTrace

Gets the stack trace of the log entry.

[JsonPropertyName("stackTrace")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonInclude]
public StackTrace? StackTrace { get; }

Property Value

StackTrace

Text

Gets the text of the log entry.

[JsonPropertyName("text")]
[JsonRequired]
[JsonInclude]
public string? Text { get; }

Property Value

string

Timestamp

Gets the timestamp in UTC of the log entry.

[JsonIgnore]
public DateTime Timestamp { get; }

Property Value

DateTime

Type

Gets the type of log entry.

[JsonPropertyName("type")]
[JsonRequired]
[JsonInclude]
public string Type { get; }

Property Value

string