writer

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NoOpLogger represents a no-op logger
	NoOpLogger = NewLogger(ioutil.Discard)
)

Functions

func NewLogger

func NewLogger(writer io.Writer) logger.Log

Types

type Log

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

func (*Log) Debugf

func (myLog *Log) Debugf(format string, a ...interface{}) error

func (*Log) Errorf

func (myLog *Log) Errorf(format string, a ...interface{}) error

func (*Log) GetWriter

func (myLog *Log) GetWriter() io.Writer

func (*Log) Infof

func (myLog *Log) Infof(format string, a ...interface{}) error

func (*Log) Warnf

func (myLog *Log) Warnf(format string, a ...interface{}) error

Jump to

Keyboard shortcuts

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