goc/pkg/log/logger.go
2021-04-05 09:06:53 +08:00

23 lines
471 B
Go

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()
}