Documentation ¶
Index ¶
- func Error(ctx *gin.Context, err error, msg string)
- func Errorf(ctx *gin.Context, err error, msg string, args ...string)
- func Info(ctx *gin.Context, msg string)
- func Infof(ctx *gin.Context, msg string, args ...string)
- func Init(withName string, opts ...zap.Opts)
- type Logger
- func (l *Logger) Error(ctx *gin.Context, err error, msg string)
- func (l *Logger) Errorf(ctx *gin.Context, err error, msg string, args ...string)
- func (l *Logger) Info(ctx *gin.Context, msg string)
- func (l *Logger) Infof(ctx *gin.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.