log

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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 Glog

type Glog struct{}

Glog is a wrapper for glog logger.

func (*Glog) Errorf

func (g *Glog) Errorf(format string, args ...interface{})

func (*Glog) Infof

func (g *Glog) Infof(format string, args ...interface{})

func (*Glog) Warningf

func (g *Glog) Warningf(format string, args ...interface{})

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