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

feat: add ability to specify log level for access logger #3157

Closed
wants to merge 4 commits into from

Conversation

tglman
Copy link
Contributor

@tglman tglman commented Oct 3, 2023

Hi,

This add a new feature to the Logger middleware to set the level of the log.

Example

Logger::default().level(Level::Debug);

This would ideally go together with #3086

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

@tglman
Copy link
Contributor Author

tglman commented Oct 12, 2023

Hi,

This is complete also, it may conflict with the pr: #3086 because it add the same deps for test the logs, I may rebase the one of the two pr based on the one that is merged before.

Regards

@robjtede
Copy link
Member

robjtede commented Jun 10, 2024

Thanks for the work you've put into this.

I'm planning on migrating all the actix/* codebases over to tracing gradually, but dynamic logging levels is not something that's well supported by that ecosystem. The benefits definitely outweigh that but it means this PR is probably never going to land as-is.

We can revisit this idea after the tracing migration.

@robjtede robjtede closed this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants