From 9b46482ad0da5e4b965debdb815ebcd89a666d89 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Jan 2024 12:34:04 -0600 Subject: make a log config window Signed-off-by: Jeff Carr --- original.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'original.go') 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...) } -- cgit v1.2.3