diff --git a/info.go b/info.go index 7afbc15..52cf978 100644 --- a/info.go +++ b/info.go @@ -8,3 +8,8 @@ func Info(a ...any) { if ! INFO { return } golanglog.Println(a...) } + +func Infof(s string, a ...any) { + if ! INFO { return } + golanglog.Printf(s, a...) +} diff --git a/log.go b/log.go index 17247db..6a5151f 100644 --- a/log.go +++ b/log.go @@ -58,12 +58,12 @@ func Get(flag string) bool { // a simple way turn logging messages on and off func Log(b bool, a ...any) { if ! b { return } - golanglog.Println(a...) + origlog.Println(a...) } func Logf(b bool, s string, a ...any) { if ! b { return } - golanglog.Printf(s, a...) + origlog.Printf(s, a...) } func Println(a ...any) {