log

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestLogger

type TestLogger struct {
	// contains filtered or unexported fields
}

func NewNilLogger

func NewNilLogger() *TestLogger

NewNilLogger is used mostly in testing, prints nothing

func (*TestLogger) AssertContainsSubstr

func (n *TestLogger) AssertContainsSubstr(t *testing.T, substr string)

func (*TestLogger) Clear

func (n *TestLogger) Clear()

func (TestLogger) Entries

func (n TestLogger) Entries() []entry

func (TestLogger) Fields

func (n TestLogger) Fields() []log.Field

func (TestLogger) LastMessage

func (n TestLogger) LastMessage() string

func (*TestLogger) Log

func (n *TestLogger) Log(level log.Level, v ...interface{})

func (*TestLogger) Logf

func (n *TestLogger) Logf(level log.Level, template string, args ...interface{})

func (TestLogger) Messages

func (n TestLogger) Messages() []string

func (*TestLogger) SetLevel

func (n *TestLogger) SetLevel(level log.Level)

func (*TestLogger) WithFields

func (n *TestLogger) WithFields(fields []log.Field) log.Logger

Jump to

Keyboard shortcuts

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