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 NOW log.LogFlag
|
||||||
var INFO log.LogFlag
|
var INFO log.LogFlag
|
||||||
var WARN log.LogFlag
|
var WARN log.LogFlag
|
||||||
|
var SPEW log.LogFlag
|
||||||
|
|
||||||
var CURL log.LogFlag
|
var CURL log.LogFlag
|
||||||
var ZONE 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() {
|
func init() {
|
||||||
myreg(&NOW, true, "NOW", "temp debugging stuff")
|
full := "go.wit.com/gui/cloudflare"
|
||||||
myreg(&INFO, false, "INFO", "general info")
|
short := "cfgui"
|
||||||
myreg(&WARN, true, "WARN", "bad things")
|
|
||||||
myreg(&CURL, true, "CURL", "curl interactions")
|
NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff")
|
||||||
myreg(&ZONE, false, "ZONE", "zone details")
|
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