dotnet / dotnet/dotnet-api-docs

The Info level for the trace switch gives an error

Open
#1,393 0 comments 0 reactions 0 assignees View on GitHub
area-System.Diagnostics dotnet-api/prod Pri2 untriaged
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.