Skip to content
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

FiberLocal / IOLocal logger wrapper #461

Open
kubukoz opened this issue Jun 30, 2021 · 2 comments · May be fixed by #800
Open

FiberLocal / IOLocal logger wrapper #461

kubukoz opened this issue Jun 30, 2021 · 2 comments · May be fixed by #800

Comments

@kubukoz
Copy link
Member

kubukoz commented Jun 30, 2021

hopefully self-explanatory: it would be great to have a wrapper for loggers that would allow one to pass structured logging context in a more implicit fashion.

This would probably involve creating a root logging context (the default value of the IOLocal), then using that in a wrapped logger so it passes the context to the underlying logger (e.g. slf4j).

@wunderk1nd-e
Copy link

Would something like this be helpful?
#676

@kubukoz
Copy link
Member Author

kubukoz commented Aug 17, 2022

Yes, that's pretty much what I was looking for :)

Maybe some utility that would create the IOLocal for you would also be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants