Documentation ¶
Index ¶
- func Debugf(msg string, args ...any)
- func Errorf(msg string, args ...any)
- func Fatalf(msg string, args ...any)
- func Infof(msg string, args ...any)
- func Init(svc string)
- func Warnf(msg string, args ...any)
- func With(args map[string]any) *zap.SugaredLogger
- func WithError(err error) *zap.SugaredLogger
- func WithRequestID(id string) *zap.SugaredLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(svc string)
Init logger for a service There are two type of logging config:
- Service specific
- Common config
Common config helps in logging consistency across all services in an environment
func WithError ¶
func WithError(err error) *zap.SugaredLogger
func WithRequestID ¶
func WithRequestID(id string) *zap.SugaredLogger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.