logger

package
v0.0.0-...-53d016b Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = 1
	LevelInfo  = 2
	LevelError = 3
)

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, a ...interface{})

func Errorf

func Errorf(format string, a ...interface{})

func Infof

func Infof(format string, a ...interface{})

func SetLogger

func SetLogger(logFunc LogFunc)

Types

type LogFunc

type LogFunc func(level int, format string, a ...interface{})

func (LogFunc) Debugf

func (t LogFunc) Debugf(format string, a ...interface{})

func (LogFunc) Errorf

func (t LogFunc) Errorf(format string, a ...interface{})

func (LogFunc) Infof

func (t LogFunc) Infof(format string, a ...interface{})

Jump to

Keyboard shortcuts

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