From 2cf02ee2e5f155205b847805b1bdccb42fcfec00 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 12 Oct 2024 16:21:47 -0500 Subject: half working 'daemon mode' Signed-off-by: Jeff Carr --- log.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'log.go') diff --git a/log.go b/log.go index 87eb57e..5b436b6 100644 --- a/log.go +++ b/log.go @@ -4,10 +4,6 @@ package log -import ( - origlog "log" -) - /* a simple way turn logging messages on and off. The gui config @@ -29,16 +25,16 @@ func Log(f *LogFlag, a ...any) { if ! f.Ok() { // if the flag is NULL, notify the user they didn't initialize the flag a = append([]any{"FLAG = NULL"}, a...) - origlog.Println(a...) + realPrintln(a...) return } if ! f.Get() { return } a = append([]any{f.short}, a...) - origlog.Println(a...) + realPrintln(a...) } func Logf(f *LogFlag, s string, a ...any) { if ! f.Get() { return } s = f.short + " " + s - origlog.Printf(s, a...) + realPrintf(s, a...) } -- cgit v1.2.3