Class TechnicalLoggerExtensions
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
loggerILogger<T>The logger.
exceptionExceptionThe exception to log.
messagestringThe message written with the plain ILogger.
Type Parameters
TThe category of the logger.