dotnet / dotnet/dotnet-api-docs
The Info level for the trace switch gives an error
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
I'm trying to use the Info level for the trace, but it is giving me an error. The Information switch works fine. The confirg I'm using is like this:
<switches>
<add name="System.Net" value="Information" />
<add name="System.Net.Sockets" value="Verbose" />
</switches>
Using the number levels, like this:
<switches>
<add name="System.Net" value="4" />
<add name="System.Net.Sockets" value="4" />
</switches>
Doesn't show any error, but don't generate any log, so only the named values should be used.
I'm using .NET version 4.6.1
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 112adde4-f654-27e5-cb41-2e3b6e17cd1c
* Version Independent ID: 27958530-fb7d-66c7-2e5f-d68c8a9d8c14
* Content: [TraceLevel Enum (System.Diagnostics)](https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.tracelevel?view=netframework-4.7.2)
* Content Source: [xml/System.Diagnostics/TraceLevel.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Diagnostics/TraceLevel.xml)
* Product: **dotnet-api**
* GitHub Login: @mairaw
* Microsoft Alias: **mairaw**
Contributor guide
Assessment
This issue has not been assessed yet.