2024-01-18 00:11:03 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
2024-01-18 04:08:32 -06:00
|
|
|
import (
|
2024-01-18 00:11:03 -06:00
|
|
|
log "go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
var NOW *log.LogFlag
|
|
|
|
var INFO *log.LogFlag
|
|
|
|
|
|
|
|
var SPEW *log.LogFlag
|
|
|
|
var WARN *log.LogFlag
|
|
|
|
|
|
|
|
var ERROR *log.LogFlag
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
full := "toolkit/nocui"
|
|
|
|
short := "nocui"
|
|
|
|
|
2024-01-18 04:08:32 -06:00
|
|
|
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
|
2024-01-27 09:03:29 -06:00
|
|
|
INFO = log.NewFlag("INFO", true, full, short, "normal debugging stuff")
|
2024-01-18 00:11:03 -06:00
|
|
|
|
2024-01-18 04:08:32 -06:00
|
|
|
WARN = log.NewFlag("WARN", true, full, short, "bad things")
|
2024-01-18 00:11:03 -06:00
|
|
|
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
|
|
|
|
|
2024-01-27 09:03:29 -06:00
|
|
|
ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors")
|
2024-01-18 00:11:03 -06:00
|
|
|
}
|