Documentation ¶
Index ¶
- type Logger
- type ZapLogger
- func (z ZapLogger) Debug(args ...interface{})
- func (z ZapLogger) Debugf(template string, args ...interface{})
- func (z ZapLogger) Error(args ...interface{})
- func (z ZapLogger) Errorf(template string, args ...interface{})
- func (z ZapLogger) Fatal(args ...interface{})
- func (z ZapLogger) Fatalf(template string, args ...interface{})
- func (z ZapLogger) Info(args ...interface{})
- func (z ZapLogger) Infof(template string, args ...interface{})
- func (z ZapLogger) Panic(args ...interface{})
- func (z ZapLogger) Panicf(template string, args ...interface{})
- func (z ZapLogger) Warn(args ...interface{})
- func (z ZapLogger) Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(template string, args ...interface{}) Info(args ...interface{}) Infof(template string, args ...interface{}) Warn(args ...interface{}) Warnf(template string, args ...interface{}) Error(args ...interface{}) Errorf(template string, args ...interface{}) Panic(args ...interface{}) Panicf(template string, args ...interface{}) Fatal(args ...interface{}) Fatalf(template string, args ...interface{}) }
Logger is basic interface for integrating custom logger
type ZapLogger ¶
type ZapLogger struct {
// contains filtered or unexported fields
}
ZapLogger object using simple SugaredLogger
func NewZapLogger ¶
NewZapLogger creates a zap production or development logger based on debug argument
func (ZapLogger) Debug ¶
func (z ZapLogger) Debug(args ...interface{})
Debug uses zap to log a debug message.
func (ZapLogger) Error ¶
func (z ZapLogger) Error(args ...interface{})
Error uses zap to log a error message.
func (ZapLogger) Fatal ¶
func (z ZapLogger) Fatal(args ...interface{})
Fatal uses zap to log a fatal message.
func (ZapLogger) Info ¶
func (z ZapLogger) Info(args ...interface{})
Info uses zap to log a info message.
func (ZapLogger) Panic ¶
func (z ZapLogger) Panic(args ...interface{})
Panic uses zap to log a panic message.
Click to show internal directories.
Click to hide internal directories.