You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to log at debug levels when the logger encounters a specific identifier. Say I want to log at trace levels when the user_id is 123 Describe the solution you'd like
it would be nice if we can configure the logger at the time of initialization to look for certain identifiers. I am really new to Go so can't suggest a solution right off the bat but in Java i used to use logging filters. An example- https://logging.apache.org/log4j/2.0/manual/filters.html
Describe alternatives you've considered
N/A
Is this a breaking change?
We do not accept breaking changes to the existing API. Please consider if your proposed solution is backwards compatible. If not, we can help you make it backwards compatible, but this must be considered when we consider new features.
N/A Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a feature that makes sense for you to build into the Zap logger - it can be implemented by additional wrapper layer that has the logic for filtering. My concern here is that the room for what "matches" the filter is going to be fairly extensive, and designing an appropriate API for that is challenging.
Open to discussing the feature if enough people need this feature though.
Is your feature request related to a problem? Please describe.
I would like to log at debug levels when the logger encounters a specific identifier. Say I want to log at trace levels when the
user_id
is123
Describe the solution you'd like
it would be nice if we can configure the logger at the time of initialization to look for certain identifiers. I am really new to Go so can't suggest a solution right off the bat but in Java i used to use logging filters. An example- https://logging.apache.org/log4j/2.0/manual/filters.html
Describe alternatives you've considered
N/A
Is this a breaking change?
We do not accept breaking changes to the existing API. Please consider if your proposed solution is backwards compatible. If not, we can help you make it backwards compatible, but this must be considered when we consider new features.
N/A
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: