Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*svc1zapCore)
func WithEntryMutatorFunc ¶ added in v1.22.0
WithEntryMutatorFunc provides a function for modifying or skipping entries dynamically. If mutator is set, ok must return true for the message to be logged.
func WithNewParamFunc ¶
WithNewParamFunc provides a function for constructing svc1log.Param values from zap fields. Use this option to control parameter safety. By default, all fields are converted to unsafe params. If newParam returns nil, the field is skipped.
func WithOriginFromZapCaller ¶
func WithOriginFromZapCaller() Option
WithOriginFromZapCaller enables zap.AddCaller() and uses the caller file and line to construct the origin value. Similar to svc1log.OriginFromCallLine().
Click to show internal directories.
Click to hide internal directories.