Adding GetDebug method to loggers.

This commit is contained in:
2022-09-07 06:03:28 -04:00
parent a2a849600b
commit a445a51c0d
9 changed files with 141 additions and 83 deletions

View File

@@ -10,6 +10,14 @@ func (l *NullLogger) DoDebug(d bool) (err error) {
return
}
// GetDebug returns the debug status of this NullLogger. It will always return true. 🙃
func (n *NullLogger) GetDebug() (d bool) {
d = true
return
}
// SetPrefix does nothing at all; it's here for interface compat. 🙃
func (l *NullLogger) SetPrefix(p string) (err error) {
return