goc/pkg/log/logger.go

23 lines
471 B
Go
Raw Normal View History

2021-04-04 03:42:05 +00:00
package log
// Logger defines common interface for logging
type Logger interface {
Debugf(format string, args ...interface{})
Infof(format string, args ...interface{})
Warnf(format string, args ...interface{})
Fatalf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Donef(format string, args ...interface{})
StartWait(message string)
StopWait()
// Sync flushes cached log to disk, some log library needs this step
Sync()
}