Table of Contents

Struct DebugLogStringHandler

Namespace
OpenQA.Selenium.Internal.Logging
Assembly
Selenium.WebDriver.dll

Interpolated string handler for Debug log messages. Defers string construction until the log level is confirmed enabled.

public ref struct DebugLogStringHandler
Inherited Members

Constructors

DebugLogStringHandler(int, int, ILogger, out bool)

Initializes a new instance of the DebugLogStringHandler struct.

public DebugLogStringHandler(int literalLength, int formattedCount, ILogger logger, out bool isEnabled)

Parameters

literalLength int

The number of literal characters in the interpolated string.

formattedCount int

The number of interpolation holes in the interpolated string.

logger ILogger

The logger to check for enabled status.

isEnabled bool

On return, indicates whether logging is enabled for this level.

Methods

AppendFormatted<T>(T)

Appends a formatted value to the handler.

public void AppendFormatted<T>(T value)

Parameters

value T

The value to format and append.

Type Parameters

T

The type of the value to format.

AppendFormatted<T>(T, int)

Appends a formatted value with alignment to the handler.

public void AppendFormatted<T>(T value, int alignment)

Parameters

value T

The value to format and append.

alignment int

The alignment for the formatted value.

Type Parameters

T

The type of the value to format.

AppendFormatted<T>(T, int, string?)

Appends a formatted value with alignment and a format string to the handler.

public void AppendFormatted<T>(T value, int alignment, string? format)

Parameters

value T

The value to format and append.

alignment int

The alignment for the formatted value.

format string

The format string.

Type Parameters

T

The type of the value to format.

AppendFormatted<T>(T, string?)

Appends a formatted value with a format string to the handler.

public void AppendFormatted<T>(T value, string? format)

Parameters

value T

The value to format and append.

format string

The format string.

Type Parameters

T

The type of the value to format.

AppendLiteral(string)

Appends a literal string to the handler.

public void AppendLiteral(string s)

Parameters

s string

The literal string to append.