tank/code/core/logger.go
2019-05-04 23:36:05 +08:00

15 lines
342 B
Go

package core
type Logger interface {
//basic log method
Log(prefix string, format string, v ...interface{})
//log with different level.
Debug(format string, v ...interface{})
Info(format string, v ...interface{})
Warn(format string, v ...interface{})
Error(format string, v ...interface{})
Panic(format string, v ...interface{})
}