2024-01-17 23:54:19 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
|
|
|
import (
|
|
|
|
log "go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
var NOW *log.LogFlag
|
|
|
|
var INFO *log.LogFlag
|
|
|
|
|
|
|
|
var WARN *log.LogFlag
|
|
|
|
|
|
|
|
var ERROR *log.LogFlag
|
2024-01-21 11:30:12 -06:00
|
|
|
var ANDLABS *log.LogFlag
|
2024-01-17 23:54:19 -06:00
|
|
|
|
|
|
|
func init() {
|
2024-01-18 14:52:36 -06:00
|
|
|
full := "go.wit.com/toolkits/andlabs"
|
|
|
|
short := "andlabs"
|
2024-01-17 23:54:19 -06:00
|
|
|
|
|
|
|
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
|
|
|
|
INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
|
|
|
|
|
2024-01-26 11:18:01 -06:00
|
|
|
WARN = log.NewFlag("WARN", false, full, short, "bad things")
|
2024-01-21 11:30:12 -06:00
|
|
|
|
|
|
|
full = "go.wit.com/gui"
|
|
|
|
short = "andlabs"
|
|
|
|
ERROR = log.NewFlag("ERROR", false, full, short, "andlab toolkit errors")
|
|
|
|
ANDLABS = log.NewFlag("ANDLABS", false, full, short, "andlabs specific stuff")
|
2024-01-17 23:54:19 -06:00
|
|
|
}
|