summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-14 15:24:34 -0600
committerJeff Carr <[email protected]>2024-01-14 15:24:34 -0600
commit708ea661988fd0e4886fc63f3f6dffe25b6fa276 (patch)
tree57c31d8d59129a6eee1b3226b77e8ea5d8153262 /log.go
parent88feec1747d845cdb075bbe2919721480966a1f6 (diff)
clean go mod filesv0.12.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'log.go')
-rw-r--r--log.go55
1 files changed, 0 insertions, 55 deletions
diff --git a/log.go b/log.go
deleted file mode 100644
index 33dc558..0000000
--- a/log.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package main
-
-import (
- "io"
-// "fmt"
-// "strings"
- witlog "go.wit.com/log"
-)
-
-// various debugging flags
-var logNow bool = true // useful for active development
-var logError bool = true
-var logWarn bool = false
-var logInfo bool = false
-var logVerbose bool = false
-
-var outputS []string
-
-func log(b bool, a ...any) {
- witlog.Log(b, a...)
-}
-
-func sleep(a ...any) {
- witlog.Sleep(a...)
-}
-
-func exit(a ...any) {
- witlog.Exit(a...)
-}
-
-/*
-func newLog(a ...any) {
- s := fmt.Sprint(a...)
- tmp := strings.Split(s, "\n")
- outputS = append(outputS, tmp...)
- if (len(outputS) > 50) {
- outputS = outputS[10:]
- }
- if (me.baseGui != nil) {
- v, _ := me.baseGui.View("msg")
- if (v != nil) {
- v.Clear()
- fmt.Fprintln(v, strings.Join(outputS, "\n"))
- }
- }
-}
-*/
-
-func setOutput(w io.Writer) {
- if (w == nil) {
- return
- }
- witlog.SetTmp()
- // witlog.SetToolkitOutput(newLog)
-}