dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.21k stars 5.86k forks source link

update LoggerMessage.Define() to be source generated logging #40870

Open Yun-Ting opened 3 months ago

Yun-Ting commented 3 months ago

Type of issue

Outdated article

Description

Most of the content on that high perf logging page talks about LoggerMessage.Define() which may have been state of the art around .NET Core 3 but as soon as source generated logging came out. Please update this documentation to reflect the above.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/extensions/high-performance-logging#define-a-logger-message

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/extensions/high-performance-logging.md

Document Version Independent Id

3f5f1b6e-06ac-cc07-48cd-b8b957a4abbb

Article author

@IEvangelist

Metadata

Yun-Ting commented 3 months ago

cc @tarekgh

tarekgh commented 3 months ago

We may need to copy the summary from the page https://learn.microsoft.com/en-us/dotnet/core/extensions/logger-message-generator#summary and refer to the page too.