Files
HackBrowserData/internal/log/log.go
T
Roger 0ed920f846 docs: trim code comments to the why (#676)
Comments that restated names or narrated the code are gone, and multi-line ones are cut to a line of why.
Only comments change: each edited Go file has the same token stream as before. winapi and abe come later.
2026-11-02 00:03:03 +08:00

22 lines
444 B
Go

package log
import "fmt"
var defaultLogger = NewLogger(nil)
func SetVerbose() {
defaultLogger.SetLevel(DebugLevel)
}
func Debugf(format string, args ...any) {
defaultLogger.logMsg(DebugLevel, fmt.Sprintf(format, args...))
}
func Infof(format string, args ...any) {
defaultLogger.logMsg(InfoLevel, fmt.Sprintf(format, args...))
}
func Warnf(format string, args ...any) {
defaultLogger.logMsg(WarnLevel, fmt.Sprintf(format, args...))
}