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

Address issue with legacy logger's calling ToString on the TState arguments. #4798

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Dec 7, 2023

Fixes #4795

And while I was in the neighborhood, also fixes #4637

Microsoft Reviewers: Open in CodeFlow

@ghost ghost assigned geeknoid Dec 7, 2023
@geeknoid geeknoid enabled auto-merge (squash) December 7, 2023 23:45
And while I was in the neighborhood, also address
@RussKie
Copy link
Member

RussKie commented Dec 8, 2023

@geeknoid could you please update the subject giving a more meaningful message?

Having "Fix #123" in the git history isn't' very meaningful. At the same that information is great to have in the body of the commit because that makes GitHub create cross-references.
Please see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue

@RussKie RussKie added the waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. label Dec 8, 2023
@geeknoid geeknoid changed the title Fix #4795 Address issue with legacy logger's calling ToString on the TState arguments. Dec 8, 2023
@ghost ghost removed the waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. label Dec 8, 2023
@geeknoid geeknoid enabled auto-merge (squash) December 11, 2023 13:47
@geeknoid geeknoid merged commit 40d18db into main Dec 11, 2023
6 checks passed
@geeknoid geeknoid deleted the geeknoid/log branch December 11, 2023 14:10
@ghost ghost added this to the 8.1 milestone Dec 11, 2023
sebastienros added a commit that referenced this pull request Dec 18, 2023
* Address issue with legacy logger's calling ToString on the TState arguments. (#4798)

* Fix #4795

And while I was in the neighborhood, also addresses #4637

---------

Co-authored-by: Martin Taillefer <mataille@microsoft.com>
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>

* Add missing [GeneratedCode] attribute (#4802)

The logging code generator emits a static lambda. The lambda's containing
function is annotated with the [GeneratedCode] attribute, but the lambda
itself is not. The result is that code generators can get confused,
considering the lambda as being user code.

This PR adds the [GeneratedCode] attribute to the lambda.

Co-authored-by: Martin Taillefer <mataille@microsoft.com>

* Add more information and sample to Http.Diagnostics Readme (#4808)

* Add more information and sample to Http.Diagnostics Readme

* Simplify first statement and adding using statements.

* Also add extra docs to xml docs

* Improve code coverage for M.E.Diagnostics.Testing (#4820)

---------

Co-authored-by: Martin Taillefer <geeknoid@users.noreply.github.com>
Co-authored-by: Martin Taillefer <mataille@microsoft.com>
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enabling logging enrichment effects the logged message FakeLogRecord should expose a dictionary of its tags
3 participants