summaryrefslogtreecommitdiff
path: root/original.go
diff options
context:
space:
mode:
Diffstat (limited to 'original.go')
-rw-r--r--original.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/original.go b/original.go
index e5a83a5..b76dcf6 100644
--- a/original.go
+++ b/original.go
@@ -18,15 +18,19 @@ package log
so this package appears to work exactly like the original ones
*/
+// TODO: fill in the other functions from "log". Is there a way to automagically do that?
+
import (
origlog "log"
)
func Println(a ...any) {
+ if ! PRINTLN.B { return }
origlog.Println(a...)
}
func Printf(s string, a ...any) {
+ if ! PRINTLN.B { return }
origlog.Printf(s, a...)
}