Support altering logging middleware logs before logging them

Open
#3,634 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

Start by locating the default request-logging middleware and reviewing how it constructs and emits request logs. Define the formatter or redaction hook and its scope before implementation; done should mean a tested way to alter logs before emission, including sensitive query parameters.

Written by the indexing model from the issue text.

Description

A-web C-improvement

In the python standard library, using a Formatter (docs) I can remove sensitive information from logs, such as query parameters with sensitive info.

Suggest something similar for actix!

It could use regex or something?

To be clear, I mean the default logging middleware that logs requests.

Dominant language
Rust
Stars
24.9k
Forks
2k
Avg merge
19h 9m
Merged PRs (30d)
61

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actix/actix-web

All issues in actix/actix-web

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.