-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Allow to hide custom fields in text formatter #1202
Comments
hadi bakalımmm |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
@informationtr is there any chance this will be reconsidered? We're still keeping a separate fork for this. Thank you! |
Hello,
I'm using logrus with the evalphobia/logrus_sentry middleware to both log errors to the console and send them to Sentry.
The middleware allows to specify certain fields that have a special meaning on Sentry, such as the full HTTP request object. However, passing those fields to the logrus.WithFields() function causes them to also display on the terminal, that is not what one may want: if you put it the entire web request, it actually becomes hard to read.
So, I'm passing the fields just to have them passed on to Sentry, but I don't want them to display on the terminal.
I thought about a HideCustomFields boolean option in the TextFormatter, that solves this use case without breaking any interface.
Thanks
The text was updated successfully, but these errors were encountered: