Table of Contents

Class TechnicalLoggerExtensions

Namespace
Arc4u.OAuth2.Token
Assembly
Arc4u.OAuth2.dll

Logs the exceptions of the token providers and of the sign-out, whatever the logger registered by the application.

public static class TechnicalLoggerExtensions
Inheritance
TechnicalLoggerExtensions
Inherited Members

Methods

LogTechnicalException<T>(ILogger<T>, Exception, string)

Logs exception in the Technical category of the Arc4u logger, or as an error of the plain ILogger when the logger is not an Arc4u logger (services.AddILogger() not called), so logging never throws in a catch block.

public static void LogTechnicalException<T>(this ILogger<T> logger, Exception exception, string message)

Parameters

logger ILogger<T>

The logger.

exception Exception

The exception to log.

message string

The message written with the plain ILogger.

Type Parameters

T

The category of the logger.