Documentation ¶
Index ¶
- Variables
- type Logger
- func (tl *Logger) Close()
- func (tl *Logger) Debug(a ...interface{})
- func (tl *Logger) Debugf(f string, a ...interface{})
- func (tl *Logger) Error(a ...interface{})
- func (tl *Logger) Errorf(f string, a ...interface{})
- func (tl *Logger) Info(a ...interface{})
- func (tl *Logger) Infof(f string, a ...interface{})
- func (tl *Logger) Mute()
- func (tl *Logger) Reset()
- func (tl *Logger) Unmute()
- func (tl *Logger) WaitFor(exp string, to time.Duration) error
- func (tl *Logger) WaitForN(exp string, n int, to time.Duration) error
- func (tl *Logger) Warn(a ...interface{})
- func (tl *Logger) Warnf(f string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWaitTimeout = errors.New("timeout")
ErrWaitTimeout is returned when a logging event doesn't happen within a timeout.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides an implementation of the logging.Logger interface that can be used to receive notifications about log events.
func (*Logger) WaitFor ¶
Returns nil when a logging event matching exp was received or returns ErrWaitTimeout when to timeout expired.
Click to show internal directories.
Click to hide internal directories.