logger

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetErrorLogger added in v0.0.29

func SetErrorLogger(logger Logger)

func SetLogger added in v0.0.29

func SetLogger(logger Logger)

Types

type DefaultLogger added in v0.0.29

type DefaultLogger struct{}

func (*DefaultLogger) Printf added in v0.0.29

func (d *DefaultLogger) Printf(msg string, args ...interface{})

type LogFunc added in v0.0.29

type LogFunc func(string, ...interface{})

func (LogFunc) Printf added in v0.0.29

func (f LogFunc) Printf(msg string, args ...interface{})

type Logger added in v0.0.29

type Logger interface {
	Printf(string, ...interface{})
}
var (
	Log      Logger = &DefaultLogger{}
	ErrorLog Logger = &DefaultLogger{}
)

Jump to

Keyboard shortcuts

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