-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logrus adapter for Logger #752
Comments
simple example:
|
I am new to Golang and this is my attempt at this issue. Any feedback would be appreciated. |
In the meanwhile, you can use the code I attached above. I'll send a PR later on |
I would like to make a PR and contribute. |
I would like to understand more about the rationale behind writing a |
In our use-case, we decided to use I think it would make sense to provide as a part of the kit an adapter for logrus (like we have adapters for other stuff here) |
go-kit http server only requires for a logger to implement this interface.
You can use any struct you want if it has |
I'm not suggesting to use Logrus, but to provide an adapter to our logger. |
I am willing to review a PR that adds a package with a logrus adapter. Suggestions for the package path:
|
I will make a PR after writing the tests |
I suggest we'll provide a Logrus adapter for our log interface.
This adapter will mainly be used to support features of gokit, i.e. "gokit's http-server logging"
The text was updated successfully, but these errors were encountered: