actix-web
actix-web copied to clipboard
add `middleware::logger::custom_status_replace`
PR Type
Feature
PR Checklist
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] A changelog entry has been made for the appropriate packages.
- [x] Format code with the latest stable rustfmt.
- [ ] (Team) Label with affected crates and semver status.
Overview
It is now possible to pass a closure to the logger, which recevies a StatusCode and returns a String for use in the log line
Closes #2627