Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- func Debugf(format string, args ...any)
- func Error(err error, msg string, args ...any)
- func Errorf(err error, format string, args ...any)
- func GetLogger() log.Logger
- func Info(msg string, args ...any)
- func Infof(format string, args ...any)
- func Warn(msg string, args ...any)
- func Warnf(format string, args ...any)
- func WithFields(fields map[string]any) *loggerWrapper
- func WithTraceId(ctx context.Context) *loggerWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Error logs a line with level error. If err is not nil it adds only the msg string or vice-versa. Otherwise adds both.
func Errorf ¶
Errorf logs a format line with level error. If err is not nil it adds only the msg string or vice-versa. Otherwise adds both.
func WithFields ¶
WithFields returns WithFields using the defaultLoggerWrapper.
func WithTraceId ¶
WithTraceId returns WithTraceId using the defaultLoggerWrapper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.