master
Charles Iliya Krempeaux 2021-02-04 18:54:00 -08:00
parent aa91e4c6a1
commit da98f62438
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,33 @@
package flog
func (receiver *internalLogger) UnmuteDebug() {
receiver.mutedDebug = false
}
func (receiver *internalLogger) UnmuteError() {
receiver.mutedError = false
}
func (receiver *internalLogger) UnmuteFatal() {
receiver.mutedFatal = false
}
func (receiver *internalLogger) UnmuteHighlight() {
receiver.mutedHighlight = false
}
func (receiver *internalLogger) UnmuteInform() {
receiver.mutedInform = false
}
func (receiver *internalLogger) UnmutePanic() {
receiver.mutedPanic = false
}
func (receiver *internalLogger) UnmuteTrace() {
receiver.mutedTrace = false
}
func (receiver *internalLogger) UnmuteWarn() {
receiver.mutedWarn = false
}

View File

@ -4,41 +4,49 @@ type Logger interface {
Debug(...interface{}) Debug(...interface{})
Debugf(string, ...interface{}) Debugf(string, ...interface{})
MuteDebug() MuteDebug()
UnmuteDebug()
DebugMuted() bool DebugMuted() bool
Error(...interface{}) error Error(...interface{}) error
Errorf(string, ...interface{}) error Errorf(string, ...interface{}) error
MuteError() MuteError()
UnmuteError()
ErrorMuted() bool ErrorMuted() bool
Fatal(...interface{}) Fatal(...interface{})
Fatalf(string, ...interface{}) Fatalf(string, ...interface{})
MuteFatal() MuteFatal()
UnmuteFatal()
FatalMuted() bool FatalMuted() bool
Highlight(...interface{}) Highlight(...interface{})
Highlightf(string, ...interface{}) Highlightf(string, ...interface{})
MuteHighlight() MuteHighlight()
UnmuteHighlight()
HighlightMuted() bool HighlightMuted() bool
Inform(...interface{}) Inform(...interface{})
Informf(string, ...interface{}) Informf(string, ...interface{})
MuteInform() MuteInform()
UnmuteInform()
InformMuted() bool InformMuted() bool
Panic(...interface{}) Panic(...interface{})
Panicf(string, ...interface{}) Panicf(string, ...interface{})
MutePanic() MutePanic()
UnmutePanic()
PanicMuted() bool PanicMuted() bool
Trace(...interface{}) Trace(...interface{})
Tracef(string, ...interface{}) Tracef(string, ...interface{})
MuteTrace() MuteTrace()
UnmuteTrace()
TraceMuted() bool TraceMuted() bool
Warn(...interface{}) Warn(...interface{})
Warnf(string, ...interface{}) Warnf(string, ...interface{})
MuteWarn() MuteWarn()
UnmuteWarn()
WarnMuted() bool WarnMuted() bool
Prefix(...string) Logger Prefix(...string) Logger