Table of Contents

Method LogError

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

LogError(IErrorMetadata, string)

Logs an error message to the logger.

protected void LogError(IErrorMetadata errorMetadata, string failureType)

Parameters

errorMetadata

The failure information

failureType string

The type of the failure

LogError(IErrorMetadata, string, params object?[])

Logs an error message to the logger.

protected void LogError(IErrorMetadata errorMetadata, string failureTypeFormat, params object?[] args)

Parameters

errorMetadata

The failure information

failureTypeFormat string

The type of the failure, in message format

args object[]

The arguments to format failureTypeFormat with