test

package
v3.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package test exposes simple implementations of log interfaces that can be used for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	M string
	L log.Level
	T time.Time
	F log.Fielder
}

Entry is a simple log.Entry that can be used for testing.

func (*Entry) Fields

func (e *Entry) Fields() log.Fielder

Fields implements log.Entry.

func (*Entry) Level

func (e *Entry) Level() log.Level

Level implements log.Entry.

func (*Entry) Message

func (e *Entry) Message() string

Message implements log.Entry.

func (*Entry) Timestamp

func (e *Entry) Timestamp() time.Time

Timestamp implements log.Entry.

Jump to

Keyboard shortcuts

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