diff --git a/logger/log.go b/logger/log.go index ac01287..63fa70a 100644 --- a/logger/log.go +++ b/logger/log.go @@ -8,6 +8,7 @@ package logger import ( + "fmt" "io" "os" @@ -102,4 +103,11 @@ func Error(msg string, fields ...Field) { std.Error(msg, fields...) } func Panic(msg string, fields ...Field) { std.Panic(msg, fields...) } func Fatal(msg string, fields ...Field) { std.Fatal(msg, fields...) } +func Debugf(format string, args ...any) { std.Debug(fmt.Sprintf(format, args...)) } +func Infof(format string, args ...any) { std.Info(fmt.Sprintf(format, args...)) } +func Warnf(format string, args ...any) { std.Warn(fmt.Sprintf(format, args...)) } +func Errorf(format string, args ...any) { std.Error(fmt.Sprintf(format, args...)) } +func Panicf(format string, args ...any) { std.Panic(fmt.Sprintf(format, args...)) } +func Fatalf(format string, args ...any) { std.Fatal(fmt.Sprintf(format, args...)) } + func Sync() error { return std.Sync() }