As per reference document at https://learn.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing
We can setup this in web.config or any other configuration file and we get detailed system.net traces, packets traces for HttpClient
calls and any kind of issue in HttpClient
calls can be captured in traces, be it certificate, TLS or anything else.
However, do we have similar implementation for dotnet core / standard which can be used in both web app or console app/ libraries ?
Configuration for dotnet framwork :
<configuration>
<system.diagnostics>
<sources>
<source name="System.Net" tracemode="includehex" maxdatasize="1024">
<listeners>
<add name="System.Net"/>
</listeners>
</source>
--------------
----------------------