Skip to content

logkit using logrus strange behaviour #1149

Answered by ChrisHines
SofiaTa asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the questions, @SofiaTa.

For most projects the go-kit log package should be an alternative to logrus rather than a wrapper around it. As a result, I don't think the logrus adapter has been used very much and it likely has many short comings. It appears you have found two of them.

The current implementation of the logrus adapter is very simple. You can see its history in #759 and #793.

I will try to answer your questions below.

  1. We want to use the go-kit log logrus adapter library and we found something a bit strange,
    every time you want to use the log API you must provide the key message "msg" for the main message otherwise it will be printed as empty

Yes, i can reproduce th…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by peterbourgon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #929 on July 17, 2021 15:03.