2024-01-08 20:52:10 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
|
|
|
import (
|
2024-01-13 13:30:13 -06:00
|
|
|
"go.wit.com/log"
|
2024-01-08 20:52:10 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
var outputS []string
|
|
|
|
|
2024-01-08 23:53:20 -06:00
|
|
|
var NOW *log.LogFlag
|
|
|
|
var INFO *log.LogFlag
|
2024-01-08 20:52:10 -06:00
|
|
|
|
2024-01-08 23:53:20 -06:00
|
|
|
var SPEW *log.LogFlag
|
|
|
|
var WARN *log.LogFlag
|
2024-01-08 20:52:10 -06:00
|
|
|
|
2024-01-08 23:53:20 -06:00
|
|
|
var ERROR *log.LogFlag
|
2024-01-08 20:52:10 -06:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
full := "toolkit/nocui"
|
|
|
|
short := "nocui"
|
|
|
|
|
2024-01-08 23:53:20 -06:00
|
|
|
NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
|
|
|
|
INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
|
2024-01-08 20:52:10 -06:00
|
|
|
|
2024-01-08 23:53:20 -06:00
|
|
|
WARN = log.NewFlag("WARN", true, full, short, "bad things")
|
|
|
|
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
|
2024-01-08 20:52:10 -06:00
|
|
|
|
2024-01-08 23:53:20 -06:00
|
|
|
ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors")
|
2024-01-08 20:52:10 -06:00
|
|
|
}
|