LoggingExtensions Class

Definition

A set of extension methods for ILogger.

C#
public static class LoggingExtensions
Inheritance
LoggingExtensions

Methods

LogCritical(ILogger, String)

Logs a message with the critical log level.

LogCriticalAsync(ILogger, String)

Logs a message with the critical log level.

LogDebug(ILogger, String)

Logs a message with the debug log level.

LogDebugAsync(ILogger, String)

Logs a message with the debug log level.

LogError(ILogger, Exception)

Logs a message with the error log level.

LogError(ILogger, String, Exception)

Logs a message with the error log level.

LogError(ILogger, String)

Logs a message with the error log level.

LogErrorAsync(ILogger, Exception)

Logs a message with the error log level.

LogErrorAsync(ILogger, String, Exception)

Logs a message with the error log level.

LogErrorAsync(ILogger, String)

Logs a message with the error log level.

LogInformation(ILogger, String)

Logs a message with the info log level.

LogInformationAsync(ILogger, String)

Logs a message with the info log level.

LogTrace(ILogger, String)

Logs a message with the trace log level.

LogTraceAsync(ILogger, String)

Logs a message with the trace log level.

LogWarning(ILogger, String)

Logs a message with the warning log level.

LogWarningAsync(ILogger, String)

Logs a message with the warning log level.

Applies to

Produit Versions
Microsoft Testing Platform 1.0.2, 1.1.0, 1.2.1, 1.3.2, 1.4.3, 1.5.3, 1.6.0