From b97f05e66638bc7e3a109a068d180ae8e5efa392 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Wed, 18 Oct 2023 15:16:00 +0300 Subject: [PATCH] add more predetermined log keys --- core/logger/attrs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/logger/attrs.go b/core/logger/attrs.go index 293e0b5..39e304a 100644 --- a/core/logger/attrs.go +++ b/core/logger/attrs.go @@ -9,6 +9,9 @@ const ( CounterIDAttr = "counterId" ErrorAttr = "error" FailureMessageAttr = "failureMessage" + HTTPMethodAttr = "httpMethod" + HTTPStatusAttr = "httpStatusCode" + HTTPStatusNameAttr = "httpStatusName" ) func ErrAttr(err any) slog.Attr {