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

Work on the logging generator. #4840

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Work on the logging generator. #4840

merged 1 commit into from
Dec 27, 2023

Conversation

geeknoid
Copy link
Member

@geeknoid geeknoid commented Dec 25, 2023

Microsoft Reviewers: Open in CodeFlow

@geeknoid geeknoid requested a review from xakep139 December 25, 2023 22:19
@ghost ghost assigned geeknoid Dec 25, 2023
@geeknoid geeknoid force-pushed the geeknoid/logger_features branch from d512ff4 to 7c26e33 Compare December 25, 2023 23:16
docs/list-of-diagnostics.md Show resolved Hide resolved
docs/list-of-diagnostics.md Show resolved Hide resolved
@geeknoid geeknoid force-pushed the geeknoid/logger_features branch 2 times, most recently from d21d49e to 3cfdaec Compare December 27, 2023 15:44
Copy link
Contributor

@xakep139 xakep139 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few non-blocking comments, but the PR looks good to me

- The generator now produces a warning when asked to log an object
which doesn't implement ToString(), IConvertible, or IFormattable.
Fixed #4835.

- Added support for the Transitive property in the LogProperties attribute. When
set to true, this causes automatic transitive traversal of a complex object, instead
of requiring manual annotations of individual properties. Fixes #4738.

- Introduce the [TagName] attribute to make it possible to control the tag name
used when logging a parameter or property. Fixes #4576.

- Fixed some situations where unnatural errors were produced as a
result of a prior error. The dummy follow-on errors are now avoided.

- Fixed handling of cases where parameters or properties were of type of the
non-generic IEnumerable. The specific type wasn't being recorgnized and treated
as an enumerable.
@geeknoid geeknoid force-pushed the geeknoid/logger_features branch from 3cfdaec to 129c4f1 Compare December 27, 2023 19:00
@geeknoid geeknoid enabled auto-merge (squash) December 27, 2023 19:01
@geeknoid geeknoid merged commit f4315cd into main Dec 27, 2023
6 checks passed
@geeknoid geeknoid deleted the geeknoid/logger_features branch December 27, 2023 19:22
@ghost ghost added this to the 8.1 milestone Dec 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants