2023-02-18 23:37:11 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2023-12-16 09:02:59 -06:00
|
|
|
"log"
|
2023-03-25 08:09:34 -05:00
|
|
|
witlog "git.wit.org/wit/gui/log"
|
2023-02-18 23:37:11 -06:00
|
|
|
)
|
|
|
|
|
2023-03-25 08:09:34 -05:00
|
|
|
// 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
|
2023-02-18 23:37:11 -06:00
|
|
|
|
2023-03-25 08:09:34 -05:00
|
|
|
var SPEW witlog.Spewt
|
2023-02-18 23:37:11 -06:00
|
|
|
|
2023-03-25 08:09:34 -05:00
|
|
|
// var log interface{}
|
2023-02-18 23:37:11 -06:00
|
|
|
|
2023-12-16 09:02:59 -06:00
|
|
|
/*
|
2023-03-25 08:09:34 -05:00
|
|
|
func log(a ...any) {
|
|
|
|
witlog.Where = "wit/gui"
|
|
|
|
witlog.Log(a...)
|
|
|
|
}
|
2023-12-16 09:02:59 -06:00
|
|
|
*/
|
2023-02-18 23:37:11 -06:00
|
|
|
|
|
|
|
func sleep(a ...any) {
|
2023-03-25 08:09:34 -05:00
|
|
|
witlog.Sleep(a...)
|
2023-02-18 23:37:11 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func exit(a ...any) {
|
2023-12-16 09:02:59 -06:00
|
|
|
log.Println(logError, "got to log() exit")
|
2023-03-25 08:09:34 -05:00
|
|
|
witlog.Exit(a...)
|
2023-02-18 23:37:11 -06:00
|
|
|
}
|