logger

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = Func(func(format string, v ...interface{}) {})
View Source
var Std = Func(log.Printf)

Functions

This section is empty.

Types

type Func

type Func func(format string, v ...interface{})

func (Func) Printf

func (f Func) Printf(format string, v ...interface{})

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

type TestLogger

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

func NewTest

func NewTest() *TestLogger

func (*TestLogger) Logs

func (l *TestLogger) Logs() string

func (*TestLogger) Output

func (l *TestLogger) Output(b bool)

func (*TestLogger) Printf

func (l *TestLogger) Printf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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