Skip to content

Commit 31337c7

Browse files
authored
Update example in C# on logging.md (#44669)
1 parent a10ddc1 commit 31337c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/azure/sdk/logging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ using System.Diagnostics.Tracing;
9191
using var listener = new AzureEventSourceListener((e, message) =>
9292
{
9393
// Only log messages from "Azure-Core" event source
94-
if (e.EventSource.Name == "Azure-Core")
94+
if (string.Equals(e.EventSource.Name, "Azure-Core", StringComparison.Ordinal))
9595
{
9696
Console.WriteLine($"{DateTime.Now} {message}");
9797
}
@@ -230,7 +230,7 @@ By default, logging of the aforementioned content is disabled. To enable logging
230230
{
231231
Diagnostics =
232232
{
233-
IsLoggingContentEnabled = true,
233+
IsLoggingContentEnabled = true
234234
}
235235
};
236236
var client = new SecretClient(

0 commit comments

Comments
 (0)