Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogMiddleware ¶
func CreateLogMiddleware(logger *zap.SugaredLogger) mux.MiddlewareFunc
Types ¶
type LoggerMock ¶
type LoggerMock interface { Debug(args ...interface{}) Debugf(template string, args ...interface{}) Debugw(msg string, keysAndValues ...interface{}) Info(args ...interface{}) Infof(template string, args ...interface{}) Infow(msg string, keysAndValues ...interface{}) Warn(args ...interface{}) Warnf(template string, args ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Error(args ...interface{}) Errorf(template string, args ...interface{}) Errorw(msg string, keysAndValues ...interface{}) DPanic(args ...interface{}) DPanicf(template string, args ...interface{}) DPanicw(msg string, keysAndValues ...interface{}) Panic(args ...interface{}) Panicf(template string, args ...interface{}) Panicw(msg string, keysAndValues ...interface{}) Fatal(args ...interface{}) Fatalf(template string, args ...interface{}) Fatalw(msg string, keysAndValues ...interface{}) Sync() error }
func NewLoggerMock ¶
func NewLoggerMock() LoggerMock
Click to show internal directories.
Click to hide internal directories.