Documentation
¶
Index ¶
- type Logger
- type LoggerZapImpl
- func (l *LoggerZapImpl) Debug(message string, fields ...interface{})
- func (l *LoggerZapImpl) Error(message string, err error, fields ...interface{})
- func (l *LoggerZapImpl) Fatal(message string, err error, fields ...interface{})
- func (l *LoggerZapImpl) Info(message string, fields ...interface{})
- func (l *LoggerZapImpl) Notice(message string, fields ...interface{})
- func (l *LoggerZapImpl) Warn(message string, fields ...interface{})
- type NoopLogger
- func (l *NoopLogger) Debug(message string, fields ...interface{})
- func (l *NoopLogger) Error(message string, err error, fields ...interface{})
- func (l *NoopLogger) Fatal(message string, err error, fields ...interface{})
- func (l *NoopLogger) Info(message string, fields ...interface{})
- func (l *NoopLogger) Notice(message string, fields ...interface{})
- func (l *NoopLogger) Warn(message string, fields ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Info(message string, fields ...interface{}) Debug(message string, fields ...interface{}) Warn(message string, fields ...interface{}) Notice(message string, fields ...interface{}) Error(message string, err error, fields ...interface{}) Fatal(message string, err error, fields ...interface{}) }
func NewNoopLogger ¶ added in v0.7.0
func NewNoopLogger() Logger
NewNoopLogger returns a logger that discards all logs
type LoggerZapImpl ¶
type LoggerZapImpl struct {
// contains filtered or unexported fields
}
func (*LoggerZapImpl) Debug ¶
func (l *LoggerZapImpl) Debug(message string, fields ...interface{})
func (*LoggerZapImpl) Error ¶
func (l *LoggerZapImpl) Error(message string, err error, fields ...interface{})
func (*LoggerZapImpl) Fatal ¶
func (l *LoggerZapImpl) Fatal(message string, err error, fields ...interface{})
func (*LoggerZapImpl) Info ¶
func (l *LoggerZapImpl) Info(message string, fields ...interface{})
func (*LoggerZapImpl) Notice ¶ added in v0.8.1
func (l *LoggerZapImpl) Notice(message string, fields ...interface{})
func (*LoggerZapImpl) Warn ¶ added in v0.8.1
func (l *LoggerZapImpl) Warn(message string, fields ...interface{})
type NoopLogger ¶ added in v0.7.0
type NoopLogger struct{}
NoopLogger is a logger implementation that discards all logs This is useful for testing to prevent logs from cluttering test output
func (*NoopLogger) Debug ¶ added in v0.7.0
func (l *NoopLogger) Debug(message string, fields ...interface{})
func (*NoopLogger) Error ¶ added in v0.7.0
func (l *NoopLogger) Error(message string, err error, fields ...interface{})
func (*NoopLogger) Fatal ¶ added in v0.7.0
func (l *NoopLogger) Fatal(message string, err error, fields ...interface{})
func (*NoopLogger) Info ¶ added in v0.7.0
func (l *NoopLogger) Info(message string, fields ...interface{})
func (*NoopLogger) Notice ¶ added in v0.8.1
func (l *NoopLogger) Notice(message string, fields ...interface{})
func (*NoopLogger) Warn ¶ added in v0.8.1
func (l *NoopLogger) Warn(message string, fields ...interface{})
Click to show internal directories.
Click to hide internal directories.