python-logstash-async
python-logstash-async copied to clipboard
FastAPI Formatter Support
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!
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).