Skip to content

Commit

Permalink
Update diagnosing-yarp-issues.md (#2179)
Browse files Browse the repository at this point in the history
* Update diagnosing-yarp-issues.md

Updating based on helping a user and their logs not containing the desired information.

* Update docs/docfx/articles/diagnosing-yarp-issues.md

Co-authored-by: Chris Ross <Tratcher@Outlook.com>

---------

Co-authored-by: Aditya Mandaleeka <adityamandaleeka@users.noreply.github.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
  • Loading branch information
3 people committed Jul 11, 2023
1 parent d1ab547 commit b8ada90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docfx/articles/diagnosing-yarp-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ By default ASP.NET will log to the console, and the configuration file can be us
},
```

You want logging infomation from the "Microsoft.AspNetCore.*" and "Yarp.ReverseProxy.*" providers. The example above will emit "Information" level events from both providers to the Console. Changing the level to "Debug" will show additional entries. ASP.NET implements change detection for configuration files, so you can edit the appsettings.json file (or appsettings.development.json if running from Visual Studio) while the project is running and observe changes to the log output.
You want logging infomation from the "Microsoft.AspNetCore.\*" and "Yarp.ReverseProxy.\*" providers. The example above will emit "Information" level events from both providers to the Console. Changing the level to "Debug" will show additional entries. ASP.NET implements change detection for configuration files, so you can edit the appsettings.json file (or appsettings.development.json if running from Visual Studio) while the project is running and observe changes to the log output.

> Note: Settings in the appsettings.development.json file will override settings in appsettings.json when running in development, so make sure that if you are editing appsettings.json that the values are not overridden.
### Understanding Log entries

Expand Down

0 comments on commit b8ada90

Please sign in to comment.