log

package
Version: v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 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

type DummyLogger struct{}

DummyLogger does not ouput anything

func (*DummyLogger) Errorf

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

Errorf does nothing.

func (*DummyLogger) Infof

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

type StdLogger struct{}

StdLogger use standard log package.

func (*StdLogger) Errorf

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

Errorf logging error information.

func (*StdLogger) Infof

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

Infof logging information.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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