gofr-dev / gofr-dev/gofr

Support to filter and mask PII data from logs at the framework level

Open
#459 4 comments 0 reactions 0 assignees View on GitHub
enhancement Observability
Dominant language
Go
Stars
20.9k
Forks
1.8k
Avg merge
5d 18h
Merged PRs (30d)
39

Description

Due to privacy concerns, many times we have to mask PII data from logs, rather than each service writing their own filter and masking libraries, This could be supported at the framework level.

**Expected Behaviour:**

- Gofr logger supports filter interface which can be implemented.
- Default filter interface implementation by the framework.
- Support struct tags for to filter particular fields from the struct while logging.

Attaching references where this is implemented:

- https://go-kratos.dev/en/docs/component/log/#filter-log-filtering
- https://github.com/m-mizutani/masq

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.