Skip to content

Feature Request: Log Masking #281

@dgoetsch

Description

@dgoetsch

I'm using slog in a new production microservice. We make some API calls, and I want to be able to configure log masking for sensitive fields. For example, I want to mask out certain fields in the request/response bodies or certain headers by name. I don't see this supported in any of the modules I've checked, I believe this is a new feature.

Currently for a work around, I'm just doing an in memory map before sending to the logger, however I would prefer the logger handled this so I wouldn't have to write a bunch of custom code to iterate over collections. I also use the slog-json crate.

Any ideas or recommendations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions