-
-
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
fix log stdlibadapter when prefixed #1036
fix log stdlibadapter when prefixed #1036
Conversation
log/stdlib.go
Outdated
@@ -49,6 +52,11 @@ func MessageKey(key string) StdlibAdapterOption { | |||
return func(a *StdlibAdapter) { a.messageKey = key } | |||
} | |||
|
|||
// Prefix sets value of the prefix for the actual log message. By default, there's no prefix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does setting the prefix do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows client code to use the adapter for stdlib logger which is set by the prefix. There is an example in the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add some more detail to the doc comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. done
looks like something wrong with the CI |
Thank you! |
No description provided.