Documentation ¶
Index ¶
- Constants
- Variables
- func FromContext(ctx context.Context) *zap.SugaredLogger
- func InitLog(local bool)
- func UpdateContext(ctx context.Context, fields ...interface{}) (context.Context, *zap.SugaredLogger)
- func WithError(logger *zap.SugaredLogger, err error) *zap.SugaredLogger
- func WithLogger(ctx context.Context, logger *zap.SugaredLogger) context.Context
Constants ¶
View Source
const ( CorrelationIDKey = "correlation-id" UserCorrelationIDKey = "user-correlation-id" )
Variables ¶
View Source
var (
L = newLoggerEntry(true)
)
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context) *zap.SugaredLogger
func UpdateContext ¶
func WithError ¶
func WithError(logger *zap.SugaredLogger, err error) *zap.SugaredLogger
func WithLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.