Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Debugf(template string, args ...interface{})
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Fatalf(template string, args ...interface{})
- func (l *Logger) Infof(template string, args ...interface{})
- func (l *Logger) Warnf(template string, args ...interface{})
- func (l *Logger) WithContext(ctx context.Context) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
Logger wraps zap.SugaredLogger to provide logging functionality
var L *Logger
Global logger for convenience
func GetLoggerWithContext ¶
func NewLogger ¶
func NewLogger(cfg *config.Configuration) (*Logger, error)
NewLogger creates and returns a new Logger instance
Click to show internal directories.
Click to hide internal directories.