mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
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.
22 lines
444 B
Go
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...))
|
|
}
|