logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOp = &noopLogger{}

NoOp returns a logger that does nothing.

Functions

This section is empty.

Types

type LogFunc

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

func (LogFunc) Log

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

type Logger

type Logger interface {
	Log(msg string, args ...interface{})
}

Logger logs internal state.

type StdLogger

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

func NewStdLogger

func NewStdLogger(l *log.Logger) *StdLogger

func (*StdLogger) Log

func (l *StdLogger) Log(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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