-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
2.0 Wishlist #388
Comments
Copied from #387 Un-export Field internalsThe original plan (see #13) with fields was to keep the implementation details completely private, and the only way to use a field would be to It seems like
This gives us more flexibility to change Field implementation details in future. |
Unify the
|
Configurable field order in the console encoderNot everyone likes the order in the current console encoder. Making this configurable would be nice. |
Copied from #387 Provide
|
Change zapcore.Core interface to split checking and adding core to the entryI have been constantly having difficulties wrapping Imagine I want to wrap a core to add filtering based on log entry. This would have to be done in I encountered the same issue when I wanted to implement a core that would intercept level checking, i.e. to wrap a core to put an AtomicEnabler in front of it, which would enable me to dynamically drop the log level while not knowing the original LevelEnabler. This is also impossible AFAIK, because you have to call
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Add Binary support to ArrayEncoder
|
Support
|
change go.uber.org to github/user-go/zap |
I would like to propose Support for logging contextual metadata #654. |
Related to #753, if we ever decide to release a breaking change, we might consider opening up the nil type with a field type like |
Perhaps there's a method I'm not aware of, but I would like to introspect the current log level, to turn off expensive debug calculations:
|
The underlying Separately, this isn't a v2 request, but it something we could make easier in V1. |
Add |
Use generics with Field in go 1.18 to reduce the lines. |
Another 2.0 item: Drop ServeHTTP from AtomicLevelThis adds a dependency on net/http, which can inflate the binary size for CLIs and any other system that cares about binary size and doesn't need HTTP support. |
This is a catch-all issue for our 2.0 wish list. If this list gets long and compelling enough, we'll consider cutting a new major version.
The text was updated successfully, but these errors were encountered: