log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dummy = &dummy{}

Dummy is a dummy logger that doesn't log.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Debugf(format string, args ...interface{})
}

Logger knows how to log messages in the go fmt style.

type Std

type Std struct {
	Debug bool
}

Std satisfies Logger interface using the standard go logger.

func (Std) Debugf

func (s Std) Debugf(format string, args ...interface{})

Debugf satisfies Logger interface.

func (Std) Errorf

func (s Std) Errorf(format string, args ...interface{})

Errorf satisfies Logger interface.

func (Std) Infof

func (s Std) Infof(format string, args ...interface{})

Infof satisfies Logger interface.

func (Std) Warningf

func (s Std) Warningf(format string, args ...interface{})

Warningf satisfies Logger interface.

Jump to

Keyboard shortcuts

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