mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Names say what each thing is: no package stutter, one word per concept, spelled out, none that differ only in case. The browser table puts one field per line. Wire names (flags, output fields, keys.json) are unchanged.
25 lines
458 B
Go
25 lines
458 B
Go
package log
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
var defaultLogger = newLogger(os.Stderr)
|
|
|
|
func SetVerbose() {
|
|
defaultLogger.setLevel(debugLevel)
|
|
}
|
|
|
|
func Debugf(format string, args ...any) {
|
|
defaultLogger.write(debugLevel, fmt.Sprintf(format, args...))
|
|
}
|
|
|
|
func Infof(format string, args ...any) {
|
|
defaultLogger.write(infoLevel, fmt.Sprintf(format, args...))
|
|
}
|
|
|
|
func Warnf(format string, args ...any) {
|
|
defaultLogger.write(warnLevel, fmt.Sprintf(format, args...))
|
|
}
|