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

FastAPI Formatter Support #99

Open
HimekoEx opened this issue Aug 16, 2024 · 1 comment
Open

FastAPI Formatter Support #99

HimekoEx opened this issue Aug 16, 2024 · 1 comment

Comments

@HimekoEx
Copy link

Hi,

Is there any plan to add a Formatter that supports FastAPI? It would be great for those using FastAPI with ELK stack to have built-in support, especially for structured logging and trace context.

Thanks!

@eht16
Copy link
Owner

eht16 commented Aug 18, 2024

Hi, I don not have plans to do this myself. I'm not using FastAPI and are not familiar with it.
But if anyone wants to contribute a FastAPI formatter, that would be nice and appreciated.

Maybe the Flask formatter can be used as a starting point to clone it and adjust for FastAPI (https://github.com/eht16/python-logstash-async/blob/master/logstash_async/formatter.py#L428).

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

No branches or pull requests

2 participants