From 9d0e7b26db2448ba29cefd0a9e256f2464526397 Mon Sep 17 00:00:00 2001 From: G3 Date: Wed, 11 Sep 2024 11:18:37 -0700 Subject: [PATCH] feat: Add two functions Plain(...) and Plainf(...) for logging without any levels. --- zzzlogi.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zzzlogi.go b/zzzlogi.go index 2b6ef40..3d2ddcc 100644 --- a/zzzlogi.go +++ b/zzzlogi.go @@ -43,4 +43,12 @@ type Logger interface { Fatal(args ...interface{}) // Logs the specified arguments at Fatal level using the specified format. Fatalf(format string, args ...interface{}) + // Logs the specified arguments without any levels using the default format + // (i.e. separated by space). Note that timestamp and log level will not + // be printed when logging using this function. + Print(args ...interface{}) + // Logs the specified arguments without any levels using the specified + // format. Note that timestamp and log level will not be printed when + // logging using this function. + Printf(format string, args ...interface{}) }