summaryrefslogtreecommitdiff
path: root/original.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-04 12:34:04 -0600
committerJeff Carr <[email protected]>2024-01-04 12:34:04 -0600
commit9b46482ad0da5e4b965debdb815ebcd89a666d89 (patch)
treefce0b8ae561d6f44ff0cd54cdc6bd51ec0f1b3ee /original.go
parent6b25784508180c69076f53b7a4e78f85b367c902 (diff)
make a log config window
Signed-off-by: Jeff Carr <[email protected]>
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...)
}