Skip to content

[Suggestion] Allow log level to be specified for middleware::logger #3604

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

Open
JackSpagnoli opened this issue Mar 26, 2025 · 0 comments · May be fixed by #3605
Open

[Suggestion] Allow log level to be specified for middleware::logger #3604

JackSpagnoli opened this issue Mar 26, 2025 · 0 comments · May be fixed by #3605

Comments

@JackSpagnoli
Copy link

The logger middleware will currently only log at an INFO level.

It would be nice to have this be configurable to allow for, for example, TRACE level logging of requests.

I propose adding a log_level method to actix_web::middleware::Logger to allow log level to be specified, defaulting to INFO.

@JackSpagnoli JackSpagnoli linked a pull request Mar 26, 2025 that will close this issue
5 tasks
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.

1 participant