ILogger interface has unfortune method void Error([Localizable(false)] string message, Exception exception). It's fine when I pass Exception class, but when I pass any other exception C# compiler choose different method to use: void Error<TArgument>([Localizable(false)] string message, TArgument argument).
The effect is that exception details are not logged. I suggest to change order of parameters and deprecate original method.
ILoggerinterface has unfortune methodvoid Error([Localizable(false)] string message, Exception exception). It's fine when I passExceptionclass, but when I pass any other exception C# compiler choose different method to use:void Error<TArgument>([Localizable(false)] string message, TArgument argument).The effect is that exception details are not logged. I suggest to change order of parameters and deprecate original method.