go.wit.com/log change
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
1a96a76ce2
commit
1a36770481
26
args.go
26
args.go
|
@ -9,22 +9,20 @@ import (
|
|||
var NOW log.LogFlag
|
||||
var INFO log.LogFlag
|
||||
var WARN log.LogFlag
|
||||
var SPEW log.LogFlag
|
||||
|
||||
var CURL log.LogFlag
|
||||
var ZONE log.LogFlag
|
||||
|
||||
func myreg(f *log.LogFlag, b bool, name string, desc string) {
|
||||
f.B = b
|
||||
f.Subsystem = "go.wit.com/gui/cloudflare"
|
||||
f.Short = "cfgui"
|
||||
f.Desc = desc
|
||||
f.Name = name
|
||||
f.Register()
|
||||
}
|
||||
|
||||
func init() {
|
||||
myreg(&NOW, true, "NOW", "temp debugging stuff")
|
||||
myreg(&INFO, false, "INFO", "general info")
|
||||
myreg(&WARN, true, "WARN", "bad things")
|
||||
myreg(&CURL, true, "CURL", "curl interactions")
|
||||
myreg(&ZONE, false, "ZONE", "zone details")
|
||||
full := "go.wit.com/gui/cloudflare"
|
||||
short := "cfgui"
|
||||
|
||||
NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff")
|
||||
INFO.NewFlag("INFO", false, full, short, "general info")
|
||||
WARN.NewFlag("WARN", true, full, short, "bad things")
|
||||
SPEW.NewFlag("SPEW", false, full, short, "spew stuff")
|
||||
|
||||
CURL.NewFlag("CURL", true, full, short, "curl interactions")
|
||||
ZONE.NewFlag("ZONE", false, full, short, "zone details")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue