actix-web icon indicating copy to clipboard operation
actix-web copied to clipboard

add `middleware::logger::custom_status_replace`

Open benny-n opened this issue 3 years ago • 0 comments

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

benny-n avatar Feb 05 '22 17:02 benny-n