feat: moved go files to root

This commit is contained in:
Simon Cornet 2025-03-06 11:42:24 +01:00
commit 379e54efd7
3 changed files with 0 additions and 0 deletions

21
debug.go Normal file
View file

@ -0,0 +1,21 @@
package logging
import (
"io"
"log"
)
var debug bool
// Enables debug logging if set to true. Default is false.
func SetDebug(debugSetting bool) {
debug = debugSetting
if !debug {
log.SetOutput(io.Discard)
}
}
// Returns the current debug value as a boolean.
func GetDebug() bool {
return debug
}