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

Add generic WSGI / ASGI middlewares for request logging #116

Open
grahamalama opened this issue May 3, 2024 · 1 comment
Open

Add generic WSGI / ASGI middlewares for request logging #116

grahamalama opened this issue May 3, 2024 · 1 comment

Comments

@grahamalama
Copy link
Contributor

Each framework supported by this package has its own implementation for request.summary logging.

However, since each framework is built on server standards (WSGI / ASGI), it'd be possible to write middleware that targets these standards (WSGI, ASGI e.g.), rather than the frameworks themselves. This would make it so that this package could support any framework that's compatible with WSGI and/or ASGI.

@grahamalama
Copy link
Contributor Author

since each framework is built on server standards

While Sanic does support being run by an ASGI server, its middleware implementation appears to be quite different from a typical ASGI-compatible middleware signature

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

No branches or pull requests

1 participant