add more predetermined log keys

This commit is contained in:
Pavel 2023-10-18 15:16:00 +03:00
parent 2d1b2351ee
commit b97f05e666

View File

@ -9,6 +9,9 @@ const (
CounterIDAttr = "counterId"
ErrorAttr = "error"
FailureMessageAttr = "failureMessage"
HTTPMethodAttr = "httpMethod"
HTTPStatusAttr = "httpStatusCode"
HTTPStatusNameAttr = "httpStatusName"
)
func ErrAttr(err any) slog.Attr {