log

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyLogger added in v1.0.0

type DummyLogger struct{}

DummyLogger does not ouput anything

func (*DummyLogger) Errorf added in v1.0.0

func (*DummyLogger) Errorf(serivce, format string, v ...interface{})

Errorf does nothing.

func (*DummyLogger) Infof added in v1.0.0

func (*DummyLogger) Infof(service, format string, v ...interface{})

Infof does nothing.

type Logger

type Logger interface {
	Infof(service, format string, v ...interface{})
	Errorf(service, format string, v ...interface{})
}

Logger is logging interface.

var DefaultLogger Logger

DefaultLogger is default Logger.

type StdLogger added in v1.0.0

type StdLogger struct{}

StdLogger use standard log package.

func (*StdLogger) Errorf added in v1.0.0

func (*StdLogger) Errorf(service, format string, v ...interface{})

Errorf logging error information.

func (*StdLogger) Infof added in v1.0.0

func (*StdLogger) Infof(service, format string, v ...interface{})

Infof logging information.

Jump to

Keyboard shortcuts

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