Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*svc1zapCore)
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.