Closed maxhermann closed 1 year ago
This seems to be an issue with the uvicorn
package's implementation of logging
rather than an issue with the seqlog
module.
The initial Traceback
block shows that it's uvicorn\logging.py, line 111, in formatMessage
that threw the error, not the structured_logging.py
module.
Also, checking the uvicorn
repo, it looks like they already fixed the bug that caused your issue since you opened your issue, so it'd be worth trying again with a newer version now, if you can.
Description
I would like to integrate seq into a fastapi application. I could send messages via logging.info(..) to SEQ within my own code but if uvicorn tries to log something i got an error. Can someone post an example? What im doing wrong?
What I Did
Im using this configuration .yml:
And calling seqlog within main.py like:
I do recieve both messages in SEQ. This works pretty fine.
But sending a GET Request (/engine/api/v1/openapi.json) to an defined endpoint results in this error message: