-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.
Description
Right now, the formatter/encoder of the log/zap
package is inferred from the debug
option, if its enabled a console encoder is used, otherwise a json encoder. This does not always make sense, e.G. sometimes debug log may help in production, but that should not result in unstructured logging.
It would be awesome, if another option was added to RawLoggerTo
to make this configurable. Alternatively, we could use a different type for opts
that contains an option for the encoder.
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.