Documentation ¶
Index ¶
- func Error(ctx *context.Context, err error, msg string)
- func Errorf(ctx *context.Context, err error, msg string, args ...string)
- func Info(ctx *context.Context, msg string)
- func Infof(ctx *context.Context, msg string, args ...string)
- func Init(withName string, opts ...zap.Opts)
- type Logger
- func (l *Logger) Error(ctx *context.Context, err error, msg string)
- func (l *Logger) Errorf(ctx *context.Context, err error, msg string, args ...string)
- func (l *Logger) Info(ctx *context.Context, msg string)
- func (l *Logger) Infof(ctx *context.Context, msg string, args ...string)
- func (l *Logger) WithValues(keysAndValues map[string]interface{}) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger implements log.Logger
func WithValues ¶
WithValues creates a new logger with additional key-value pairs in the context
func (*Logger) WithValues ¶
WithValues creates a new logger with additional key-value pairs in the context
Click to show internal directories.
Click to hide internal directories.