Skip to content
This repository has been archived by the owner on Nov 17, 2019. It is now read-only.

Latest commit

 

History

History
24 lines (21 loc) · 604 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 604 Bytes

Logger

Logger is an interface, default it will use (https://github.com/lunny/log)[https://github.com/lunny/log] as log implement if you do not define your own log.

type Logger interface {
	Debugf(format string, v ...interface{})
	Debug(v ...interface{})
	Infof(format string, v ...interface{})
	Info(v ...interface{})
	Warnf(format string, v ...interface{})
	Warn(v ...interface{})
	Errorf(format string, v ...interface{})
	Error(v ...interface{})
}

You can custom your log

l := log.New(out, "[tango] ", log.Ldefault())
l.SetOutputLevel(log.Ldebug)
t := tango.Classic(l)
t.Run()