Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Debug(msg string, fields ...zap.Field)
- func (l *Logger) Error(msg string, fields ...zap.Field)
- func (l *Logger) Fatal(msg string, err error, fields ...zap.Field)
- func (l *Logger) Info(msg string, fields ...zap.Field)
- func (l *Logger) Named(name string) *Logger
- func (l *Logger) Sync() error
- func (l *Logger) Warn(msg string, fields ...zap.Field)
- func (l *Logger) With(fields ...zap.Field) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is a wrapper around zap.Logger
func NewLogger ¶
func NewLogger(cfg config.LoggingConfig) (*Logger, error)
NewLogger creates a new logger (alias for New)
Click to show internal directories.
Click to hide internal directories.