docs icon indicating copy to clipboard operation
docs copied to clipboard

update LoggerMessage.Define() to be source generated logging

Open Yun-Ting opened this issue 1 year ago • 2 comments

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

  • ID: aa00c051-c047-bbcd-5e25-ca6a722b51c3
  • Service: dotnet-fundamentals

Yun-Ting avatar May 13 '24 23:05 Yun-Ting

cc @tarekgh

Yun-Ting avatar May 13 '24 23:05 Yun-Ting

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.

tarekgh avatar May 13 '24 23:05 tarekgh