-
Type: Epic
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: Internal
-
Done
-
Integrate with .NET Logging API
-
3
-
6
-
7
-
100
-
Historically .NET has not included a standard logging API and there were many competing open source offerings and custom solutions. As a result, the .NET/C# driver has not generated log messages. It integrates with TraceProviders and raises custom events (e.g. SDAM events), but there is no mechanism for the driver to log errors and warnings in a standardized way.
In the intervening years, Microsoft introduced Microsoft.Extensions.Logging, which is a NuGet package to define a standardized logging API. This API works with both built-in and third-party log providers. It would provide the driver with a mechanism to log messages in a log provider independent way.
The minimum .NET versions required for Microsoft.Extensions.Logging are .NET Standard 2.0 and .NET Framework 4.6.1 - which we now meet since we retired support for .NET Standard 1.5 and increased our minimum .NET Framework version to 4.7.2.
See Logging in .NET for an overview of .NET's logging support.
- is duplicated by
-
CSHARP-2829 Add logging to the driver
- Development Complete