Versions in this module Expand all Collapse all v0 v0.0.17 Jan 12, 2024 v0.0.16 Jan 12, 2024 Changes in this version + type Fields map[LogKey]interface + type Groups map[LogType][]string + type LogKey string + type LogOption func(context.Context) context.Context + func WithField(key string, value interface{}) LogOption + func WithFields(fields Fields) LogOption + func WithSlack(key string, groups Groups) LogOption + func WithWebhook(msgKey string, groups Groups) LogOption + type LogType int + const ERROR + const FATAL + const INFO + const WARNING + type Logger struct + func New(ctx context.Context, span string, options ...LogOption) (context.Context, *Logger) + func (l *Logger) Error(ctx context.Context, msg string) + func (l *Logger) Fatal(ctx context.Context, msg string) + func (l *Logger) Info(ctx context.Context, msg string) + func (l *Logger) Warn(ctx context.Context, msg string) + func (l *Logger) WithError(err error) *Logger + func (l *Logger) WithField(key string, value interface{}) *Logger + func (l *Logger) WithFields(fields Fields) *Logger