log

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dummy = &dummy{}

Dummy logger doesn't log anything

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 is the interface that the loggers used by the library will use.

type Std

type Std struct {
	Debug bool
}

Std is a wrapper for go standard library logger.

func (*Std) Debugf

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

func (*Std) Errorf

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

func (*Std) Infof

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

func (*Std) Warningf

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

Jump to

Keyboard shortcuts

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