Documentation ¶
Index ¶
- func InitLogger() *zapLog.SugaredLogger
- func Logger(ctx context.Context) *zapLog.SugaredLogger
- func NewContext(ctx context.Context, fields interface{}) context.Context
- func WithContext(ctx context.Context) *zapLog.SugaredLogger
- func WithRqId(ctx context.Context, rqId string) context.Context
- type Snowflake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger() *zapLog.SugaredLogger
func Logger ¶
func Logger(ctx context.Context) *zapLog.SugaredLogger
Logger returns a zap logger with as much context as possible
func WithContext ¶
func WithContext(ctx context.Context) *zapLog.SugaredLogger
Types ¶
Click to show internal directories.
Click to hide internal directories.