log

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 2 Imported by: 1

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{})
}

Logger is the interface that the loggers used by the library will use.

type Std

type Std struct{}

Std is a wrapper for go standard library logger.

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