From 747148c2d2a6a6c5d4c62b178248807f957cabe5 Mon Sep 17 00:00:00 2001 From: Nikanoras Zavadskij <37303011+Nikanoras@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:45:03 +0200 Subject: [PATCH] Fix compilation error for AppLogEvents example --- docs/core/extensions/logging.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/core/extensions/logging.md b/docs/core/extensions/logging.md index cc5c7c4e0d939..749f543f7e7d8 100644 --- a/docs/core/extensions/logging.md +++ b/docs/core/extensions/logging.md @@ -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; // ... }