mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
d0971ca098
* chore: update CI, golangci-lint, and CLAUDE.md * fix: resolve CI failures on Windows test and lint * fix: resolve Windows test path and main.go line length lint issues * fix: auto-format log/ with gofumpt, exclude pre-refactoring lint issues * fix: resolve remaining lint issues, remove unnecessary exclusions * fix: remove invalid G117 gosec rule, use text exclusion for secret pattern * fix: align CI golangci-lint version with local (v2.4 -> v2.10)
45 lines
818 B
Go
45 lines
818 B
Go
package log
|
|
|
|
import (
|
|
"github.com/moond4rk/hackbrowserdata/log/level"
|
|
)
|
|
|
|
// defaultLogger is the default logger used by the package-level functions.
|
|
var defaultLogger = NewLogger(nil)
|
|
|
|
func SetVerbose() {
|
|
defaultLogger.SetLevel(level.DebugLevel)
|
|
}
|
|
|
|
func Debug(args ...any) {
|
|
defaultLogger.Debug(args...)
|
|
}
|
|
|
|
func Debugf(format string, args ...any) {
|
|
defaultLogger.Debugf(format, args...)
|
|
}
|
|
|
|
func Warn(args ...any) {
|
|
defaultLogger.Warn(args...)
|
|
}
|
|
|
|
func Warnf(format string, args ...any) {
|
|
defaultLogger.Warnf(format, args...)
|
|
}
|
|
|
|
func Error(args ...any) {
|
|
defaultLogger.Error(args...)
|
|
}
|
|
|
|
func Errorf(format string, args ...any) {
|
|
defaultLogger.Errorf(format, args...)
|
|
}
|
|
|
|
func Fatal(args ...any) {
|
|
defaultLogger.Fatal(args...)
|
|
}
|
|
|
|
func Fatalf(format string, args ...any) {
|
|
defaultLogger.Fatalf(format, args...)
|
|
}
|