Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exp: zapslog / replaceattr support #1468

Open
alok87 opened this issue Nov 12, 2024 · 1 comment
Open

exp: zapslog / replaceattr support #1468

alok87 opened this issue Nov 12, 2024 · 1 comment

Comments

@alok87
Copy link

alok87 commented Nov 12, 2024

Is your feature request related to a problem? Please describe.
Its a request for extending zapslog

Describe the solution you'd like
Extend to support using packages for masking centrally
so that using packages like this becomes possible https://github.com/m-mizutani/masq

@alok87
Copy link
Author

alok87 commented Nov 12, 2024

replaceAttr injection helps

// apply replaceAttr if defined (this will mask)
		if h.replaceAttr != nil {
			attr = h.replaceAttr(h.groups, attr)
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants