feat: 增加 string with format 消息
This commit is contained in:
parent
29151e240d
commit
28ae60757b
@ -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() }
|
||||
|
Loading…
Reference in New Issue
Block a user