go-log/logger.go

64 lines
1.1 KiB
Go
Raw Permalink Normal View History

package log
2021-02-05 01:19:59 +00:00
type Logger interface {
2021-02-09 21:31:00 +00:00
Alert(...interface{}) error
Alertf(string, ...interface{}) error
MuteAlert()
UnmuteAlert()
AlertMuted() bool
2021-02-10 19:29:47 +00:00
Begin(...interface{}) Logger
2021-02-05 01:19:59 +00:00
Debug(...interface{})
Debugf(string, ...interface{})
2021-02-05 02:25:22 +00:00
MuteDebug()
2021-02-05 02:54:00 +00:00
UnmuteDebug()
2021-02-05 02:51:05 +00:00
DebugMuted() bool
2021-02-05 01:19:59 +00:00
2021-02-10 19:29:47 +00:00
End(...interface{})
2021-02-05 01:19:59 +00:00
Error(...interface{}) error
Errorf(string, ...interface{}) error
2021-02-05 02:25:22 +00:00
MuteError()
2021-02-05 02:54:00 +00:00
UnmuteError()
2021-02-05 02:51:05 +00:00
ErrorMuted() bool
2021-02-05 01:19:59 +00:00
Fatal(...interface{})
Fatalf(string, ...interface{})
2021-02-05 02:25:22 +00:00
MuteFatal()
2021-02-05 02:54:00 +00:00
UnmuteFatal()
2021-02-05 02:51:05 +00:00
FatalMuted() bool
2021-02-05 01:19:59 +00:00
Highlight(...interface{})
Highlightf(string, ...interface{})
2021-02-05 02:25:22 +00:00
MuteHighlight()
2021-02-05 02:54:00 +00:00
UnmuteHighlight()
2021-02-05 02:51:05 +00:00
HighlightMuted() bool
2021-02-05 01:19:59 +00:00
Inform(...interface{})
Informf(string, ...interface{})
2021-02-05 02:25:22 +00:00
MuteInform()
2021-02-05 02:54:00 +00:00
UnmuteInform()
2021-02-05 02:51:05 +00:00
InformMuted() bool
2021-02-05 01:19:59 +00:00
Panic(...interface{})
Panicf(string, ...interface{})
2021-02-05 02:25:22 +00:00
MutePanic()
2021-02-05 02:54:00 +00:00
UnmutePanic()
2021-02-05 02:51:05 +00:00
PanicMuted() bool
2021-02-05 01:19:59 +00:00
Trace(...interface{})
Tracef(string, ...interface{})
2021-02-05 02:25:22 +00:00
MuteTrace()
2021-02-05 02:54:00 +00:00
UnmuteTrace()
2021-02-05 02:51:05 +00:00
TraceMuted() bool
2021-02-05 01:19:59 +00:00
Warn(...interface{})
Warnf(string, ...interface{})
2021-02-05 02:25:22 +00:00
MuteWarn()
2021-02-05 02:54:00 +00:00
UnmuteWarn()
2021-02-05 02:51:05 +00:00
WarnMuted() bool
2021-02-05 01:19:59 +00:00
Prefix(...string) Logger
}