Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation error for AppLogEvents example #39206

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/core/extensions/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,18 +381,18 @@ using Microsoft.Extensions.Logging;

internal static class AppLogEvents
{
internal EventId Create = new(1000, "Created");
internal EventId Read = new(1001, "Read");
internal EventId Update = new(1002, "Updated");
internal EventId Delete = new(1003, "Deleted");
internal static EventId Create = new(1000, "Created");
internal static EventId Read = new(1001, "Read");
internal static EventId Update = new(1002, "Updated");
internal static EventId Delete = new(1003, "Deleted");

// These are also valid EventId instances, as there's
// an implicit conversion from int to an EventId
internal const int Details = 3000;
internal const int Error = 3001;

internal EventId ReadNotFound = 4000;
internal EventId UpdateNotFound = 4001;
internal static EventId ReadNotFound = 4000;
internal static EventId UpdateNotFound = 4001;

// ...
}
Expand Down
Loading