Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
// Debugf uses fmt.Sprintf to log a templated message.
Debugf(template string, args ...interface{})
// Infof uses fmt.Sprintf to log a templated message.
Infof(template string, args ...interface{})
// Warnf uses fmt.Sprintf to log a templated message.
Warnf(template string, args ...interface{})
// Errorf uses fmt.Sprintf to log a templated message.
Errorf(template string, args ...interface{})
With(args ...interface{}) Logger
WithErr(err error) Logger
Named(name string) Logger
Stream(readyCh <-chan struct{}) (<-chan event.Event, func())
}
Logger is an interface for logging
type LoggerCloser ¶ added in v0.16.1
type LoggerCloser interface {
Logger
// Close closes the logger.
Close()
}
LoggerCloser is an interface that wraps a Logger and a close function.
Click to show internal directories.
Click to hide internal directories.