skipper: github.com/zalando/skipper/logging/loggingtest Index | Files

package loggingtest

import "github.com/zalando/skipper/logging/loggingtest"

Index

Package Files

logger.go

Variables

var ErrWaitTimeout = errors.New("timeout")

ErrWaitTimeout is returned when a logging event doesn't happen within a timeout.

type Logger Uses

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 New Uses

func New() *Logger

Returns a new, initialized instance of Logger.

func (*Logger) Close Uses

func (tl *Logger) Close()

Closes the logger.

func (*Logger) Count Uses

func (tl *Logger) Count(expression string) int

Count returns the recorded messages that match exp.

func (*Logger) Debug Uses

func (tl *Logger) Debug(a ...interface{})

func (*Logger) Debugf Uses

func (tl *Logger) Debugf(f string, a ...interface{})

func (*Logger) Error Uses

func (tl *Logger) Error(a ...interface{})

func (*Logger) Errorf Uses

func (tl *Logger) Errorf(f string, a ...interface{})

func (*Logger) Info Uses

func (tl *Logger) Info(a ...interface{})

func (*Logger) Infof Uses

func (tl *Logger) Infof(f string, a ...interface{})

func (*Logger) Mute Uses

func (tl *Logger) Mute()

func (*Logger) Reset Uses

func (tl *Logger) Reset()

Clears the stored logging events.

func (*Logger) Unmute Uses

func (tl *Logger) Unmute()

func (*Logger) WaitFor Uses

func (tl *Logger) WaitFor(exp string, to time.Duration) error

Returns nil when a logging event matching exp was received or returns ErrWaitTimeout when to timeout expired.

func (*Logger) WaitForN Uses

func (tl *Logger) WaitForN(exp string, n int, to time.Duration) error

Returns nil when n logging events matching exp were received or returns ErrWaitTimeout when to timeout expired.

func (*Logger) Warn Uses

func (tl *Logger) Warn(a ...interface{})

func (*Logger) Warnf Uses

func (tl *Logger) Warnf(f string, a ...interface{})

Package loggingtest imports 5 packages (graph) and is imported by 6 packages. Updated 2017-10-31. Refresh now. Tools for package owners.