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

Add a new option sensitive, which can be used to hide sensitive args #70

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

SubhrajitPrusty
Copy link
Member

Lets you log messages without showing the values

@SubhrajitPrusty SubhrajitPrusty force-pushed the feat-add-sensitive-logging branch from 1359ee6 to 8535d3b Compare June 6, 2024 13:05
@sreeram-narayanan
Copy link
Contributor

This is better suited for the application level rather than a framework. I would recommend utilising Stringer (To implement String()) or something like this.

@SubhrajitPrusty SubhrajitPrusty force-pushed the feat-add-sensitive-logging branch 2 times, most recently from 3a28a75 to 3ce87a1 Compare June 10, 2024 12:17
log/slog/slog.go Show resolved Hide resolved
log/slog/slog.go Outdated Show resolved Hide resolved
- lets you log messages without showing the values
@SubhrajitPrusty SubhrajitPrusty force-pushed the feat-add-sensitive-logging branch from 3ce87a1 to aa2f1c0 Compare June 10, 2024 12:28
@SubhrajitPrusty SubhrajitPrusty requested a review from vabshere June 10, 2024 12:31
@SubhrajitPrusty SubhrajitPrusty changed the title feat: new flag sensitive Add a new option sensitive, which can be used to hide sensitive args Jun 10, 2024
@SubhrajitPrusty SubhrajitPrusty self-assigned this Jun 11, 2024
@SubhrajitPrusty SubhrajitPrusty added the enhancement New feature or request label Jun 11, 2024
@ydlamba ydlamba self-requested a review June 12, 2024 09:58
@SubhrajitPrusty SubhrajitPrusty force-pushed the feat-add-sensitive-logging branch from d2de463 to 5b58787 Compare June 12, 2024 10:29
@SubhrajitPrusty SubhrajitPrusty merged commit 9a43c54 into master Jun 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants