memlogger

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryLogger

type MemoryLogger struct {
	Infos    []string
	Warnings []string
	Errors   []string
}

MemoryLogger is an in memory logger for tests.

func (*MemoryLogger) Count

func (m *MemoryLogger) Count() int

func (*MemoryLogger) Error

func (m *MemoryLogger) Error(args ...any)

func (*MemoryLogger) ErrorCtx added in v1.7.0

func (m *MemoryLogger) ErrorCtx(ctx context.Context, args ...any)

func (*MemoryLogger) Errorf

func (m *MemoryLogger) Errorf(format string, args ...any)

func (*MemoryLogger) Info

func (m *MemoryLogger) Info(args ...any)

func (*MemoryLogger) InfoCtx added in v1.7.0

func (m *MemoryLogger) InfoCtx(ctx context.Context, args ...any)

func (*MemoryLogger) Infof

func (m *MemoryLogger) Infof(format string, args ...any)

func (*MemoryLogger) Reset

func (m *MemoryLogger) Reset()

func (*MemoryLogger) Warning

func (m *MemoryLogger) Warning(args ...any)

func (*MemoryLogger) WarningCtx added in v1.7.0

func (m *MemoryLogger) WarningCtx(ctx context.Context, args ...any)

func (*MemoryLogger) Warningf

func (m *MemoryLogger) Warningf(format string, args ...any)

Jump to

Keyboard shortcuts

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