test

package
v1.30.1-hotfix Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2018 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*Serializer
	log.Logger
}

func NewLogger

func NewLogger() *Logger

type Serializer

type Serializer struct {
	SerializedFields []log.Fields
}

func NewSerializer

func NewSerializer() *Serializer

func (*Serializer) AssertDebug

func (s *Serializer) AssertDebug(message string, containsFields ...log.Fields)

func (*Serializer) AssertDebugExpression

func (s *Serializer) AssertDebugExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertError

func (s *Serializer) AssertError(message string, containsFields ...log.Fields)

func (*Serializer) AssertErrorExpression

func (s *Serializer) AssertErrorExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertInfo

func (s *Serializer) AssertInfo(message string, containsFields ...log.Fields)

func (*Serializer) AssertInfoExpression

func (s *Serializer) AssertInfoExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertLog

func (s *Serializer) AssertLog(level log.Level, message string, containsFields ...log.Fields)

func (*Serializer) AssertLogExpression

func (s *Serializer) AssertLogExpression(level log.Level, messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertWarn

func (s *Serializer) AssertWarn(message string, containsFields ...log.Fields)

func (*Serializer) AssertWarnExpression

func (s *Serializer) AssertWarnExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) Serialize

func (s *Serializer) Serialize(fields log.Fields) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL