Documentation ¶
Index ¶
- func ContextWithLogger(ctx context.Context, logger *zap.Logger) context.Context
- func Default() *zap.Logger
- func FromContext(ctx context.Context) *zap.Logger
- func GetLogger(c *gin.Context) *zap.SugaredLogger
- func Init(opts ...Option) *zap.Logger
- func New(opts ...Option) *zap.Logger
- func WithRequestID(requestID string) *zap.Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithLogger ¶
func WithRequestID ¶
Types ¶
type Option ¶
type Option func(*option)
func AddCallerSkip ¶
AddCallerSkip adds the given number of callers skipped to the options.
func WithErrorStacktrace ¶
WithErrorStacktrace sets whether to record stacktraces on errors.
Click to show internal directories.
Click to hide internal directories.