Documentation
¶
Index ¶
- Variables
- type Logger
- type NoLog
- type ZapAdapter
- func (z *ZapAdapter) Debug(format string, args ...interface{})
- func (z *ZapAdapter) Error(format string, args ...interface{})
- func (z *ZapAdapter) Fatal(format string, args ...interface{})
- func (z *ZapAdapter) Info(format string, args ...interface{})
- func (z *ZapAdapter) Warn(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var NoLogger = NoLog{}
NoLogger is a default no-op logger instance
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Debug(format string, args ...interface{})
Info(format string, args ...interface{})
Warn(format string, args ...interface{})
Error(format string, args ...interface{})
Fatal(format string, args ...interface{})
}
Logger defines the logging interface used by database packages
func NewZapAdapter ¶
NewZapAdapter creates a new ZapAdapter
type ZapAdapter ¶
type ZapAdapter struct {
// contains filtered or unexported fields
}
ZapAdapter adapts zap.Logger to the database Logger interface
func (*ZapAdapter) Debug ¶
func (z *ZapAdapter) Debug(format string, args ...interface{})
func (*ZapAdapter) Error ¶
func (z *ZapAdapter) Error(format string, args ...interface{})
func (*ZapAdapter) Fatal ¶
func (z *ZapAdapter) Fatal(format string, args ...interface{})
func (*ZapAdapter) Info ¶
func (z *ZapAdapter) Info(format string, args ...interface{})
func (*ZapAdapter) Warn ¶
func (z *ZapAdapter) Warn(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.