-
Notifications
You must be signed in to change notification settings - Fork 463
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
Add logging callback #10
Comments
Great idea. The details of this are tricky. Have a proposal? |
We cheated and just passed a EDIT: The other option would be to define some sort of logging interface, but I'd rather stay away from that if possible because it limits what you can do... for instance, it makes it harder to grab fields out of the context and pass them as params to the logging library. |
Btw, join our Slack and maybe |
do you know any good example of logging callbacks in a go library? |
@hloeffler not great examples. annoying examples are often callbacks with string message argument. annoying because it's really not so much a log and more an event in some cases. it might be processes by the app, or it might be logged using structured logging. |
can we just define signature for the callback and let the user to format or log it however they want? |
It would be awesome if there was a way to log when users connect (along with what requests they run) and disconnect.
The text was updated successfully, but these errors were encountered: