2021-02-05 01:19:59 +00:00
|
|
|
package flog
|
|
|
|
|
|
|
|
type Logger interface {
|
|
|
|
CanLogDebug() bool
|
|
|
|
Debug(...interface{})
|
|
|
|
Debugf(string, ...interface{})
|
2021-02-05 02:25:22 +00:00
|
|
|
MuteDebug()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
CanLogError() bool
|
|
|
|
Error(...interface{}) error
|
|
|
|
Errorf(string, ...interface{}) error
|
2021-02-05 02:25:22 +00:00
|
|
|
MuteError()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
CanLogFatal() bool
|
|
|
|
Fatal(...interface{})
|
|
|
|
Fatalf(string, ...interface{})
|
2021-02-05 02:25:22 +00:00
|
|
|
MuteFatal()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
CanLogHighlight() bool
|
|
|
|
Highlight(...interface{})
|
|
|
|
Highlightf(string, ...interface{})
|
2021-02-05 02:25:22 +00:00
|
|
|
MuteHighlight()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
CanLogInform() bool
|
|
|
|
Inform(...interface{})
|
|
|
|
Informf(string, ...interface{})
|
2021-02-05 02:25:22 +00:00
|
|
|
MuteInform()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
CanLogPanic() bool
|
|
|
|
Panic(...interface{})
|
|
|
|
Panicf(string, ...interface{})
|
2021-02-05 02:25:22 +00:00
|
|
|
MutePanic()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
CanLogTrace() bool
|
|
|
|
Trace(...interface{})
|
|
|
|
Tracef(string, ...interface{})
|
2021-02-05 02:25:22 +00:00
|
|
|
MuteTrace()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
CanLogWarn() bool
|
|
|
|
Warn(...interface{})
|
|
|
|
Warnf(string, ...interface{})
|
2021-02-05 02:25:22 +00:00
|
|
|
MuteWarn()
|
2021-02-05 01:19:59 +00:00
|
|
|
|
|
|
|
Prefix(...string) Logger
|
|
|
|
}
|