Replace logger middlware with zerolog one - #421
Merged
Conversation
miry
force-pushed
the
http-api-server-timeout
branch
2 times, most recently
from
August 28, 2022 16:09
accde4f to
0e6e62f
Compare
miry
marked this pull request as ready for review
August 28, 2022 16:10
miry
force-pushed
the
http-api-server-timeout
branch
4 times, most recently
from
August 28, 2022 16:27
d234f6d to
11dee90
Compare
Replace custom logger middleware with zerolog/hlog solutions. Use logger instance from the HTTP request.
miry
force-pushed
the
http-api-server-timeout
branch
from
August 28, 2022 16:37
11dee90 to
805fe34
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace loggingMiddleware with zerolog/hlog one.
Example of new log record:
{"level":"debug","request_id":"cc5p6dfsemvo4p4a7sv0","client":"127.0.0.1:51587","method":"GET","url":"/version","status":200,"size":3,"duration":0.02825,"caller":"api.go:71","time":"2022-08-28T16:09:25Z"}