Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building and Consuming Web Services - HttpLogging needs a tweak to appsettings.development.json #47

Closed
ntsiatinis opened this issue Apr 27, 2022 · 1 comment

Comments

@ntsiatinis
Copy link

Just a quick one - on (or around) page 699 - 'Enabling HTTP logging' - I followed the steps in the book to add HttpLogging, but then didn't see any log messages when calling the localhost:5001/api/customers web service

I solved this by opening up the appsettings.Development.json file and changing

"Microsoft.AspNetCore": "Warning"
to
"Microsoft.AspNetCore": "Information"

The logging then appeared on next run.

@markjprice
Copy link
Owner

Thanks! I have added an erratum for this issue:
https://github.com/markjprice/cs10dotnet6/blob/main/errata.md#page-701---enabling-http-logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants