Skip to content

Commit cc8f93f

Browse files
vcrobeIEvangelistgewarren
authored
Added a link to usage examples (#28493)
* Added a link to usage examples Added a link to the LoggerExtensions.LogInformation Method to see usage examples * Update docs/fundamentals/code-analysis/quality-rules/ca2254.md Removed locale from the URL Co-authored-by: David Pine <[email protected]> * Update docs/fundamentals/code-analysis/quality-rules/ca2254.md --------- Co-authored-by: David Pine <[email protected]> Co-authored-by: Genevieve Warren <[email protected]>
1 parent d64422c commit cc8f93f

File tree

1 file changed

+2
-0
lines changed
  • docs/fundamentals/code-analysis/quality-rules

1 file changed

+2
-0
lines changed

docs/fundamentals/code-analysis/quality-rules/ca2254.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Update the message template to be a constant expression. If you're using values
6464
logger.Warning("Person {FirstName} {LastName} encountered an issue", firstName, lastName);
6565
```
6666

67+
For usage examples, see the <xref:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation%2A?displayProperty=nameWithType> method.
68+
6769
## When to suppress errors
6870

6971
It's safe to suppress a warning from this rule if your use case doesn't require structured logging. It's also safe to suppress this rule if your log message template is defined in a resource file.

0 commit comments

Comments
 (0)