Documentation
¶
Index ¶
- func NewZapLogger(logLevel string)
- type Logger
- type ZapLogger
- func (l *ZapLogger) Debug(msg string, fields ...zap.Field)
- func (l *ZapLogger) Debugf(format string, args ...interface{})
- func (l *ZapLogger) Error(msg string, fields ...zap.Field)
- func (l *ZapLogger) Errorf(format string, args ...interface{})
- func (l *ZapLogger) GetLogger() *zap.Logger
- func (l *ZapLogger) Info(msg string, fields ...zap.Field)
- func (l *ZapLogger) Infof(format string, args ...interface{})
- func (l *ZapLogger) Warn(msg string, fields ...zap.Field)
- func (l *ZapLogger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZapLogger ¶
func NewZapLogger(logLevel string)
Types ¶
type Logger ¶
type Logger interface {
Debug(msg string, fields ...zap.Field)
Debugf(format string, args ...interface{})
Info(msg string, fields ...zap.Field)
Infof(format string, args ...interface{})
Error(msg string, fields ...zap.Field)
Errorf(format string, args ...interface{})
Warn(msg string, fields ...zap.Field)
Warnf(format string, args ...interface{})
GetLogger() *zap.Logger
}
var ZLogger Logger
Click to show internal directories.
Click to hide internal directories.