dotnet / dotnet/docs

[UUF] Needs an example using the LoggerMessage pattern

Open
#50,739 0 comments 0 reactions 1 assignee Claimed by @gewarren View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc user-feedback
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Type of issue

Missing information

### Description

Needs an example using the LoggerMessage pattern. I really don't want to gate EVERY. SINGLE. LOG. in my code base (there are thousands). At least the logger message pattern provides some traceability. If it worked; the example in the link only shows how to declare a logger message, not how to use one.

### Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1873

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/quality-rules/ca1873.md

### Document Version Independent Id

b592168a-cc0e-fe99-986e-c1a082228d92

### Platform Id

8571c673-bf84-6950-9767-677e8a98e0d3

### Article author

@gewarren

### Metadata

* ID: d46812eb-4194-0d2b-cce6-a3a658e5fd4d
* PlatformId: 8571c673-bf84-6950-9767-677e8a98e0d3
* Service: **dotnet-fundamentals**

[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+b592168a-cc0e-fe99-986e-c1a082228d92)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.