2024-01-05 18:52:47 -06:00
|
|
|
package cloudflare
|
|
|
|
|
|
|
|
// initializes logging and command line options
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
2024-01-08 23:53:42 -06:00
|
|
|
var NOW *log.LogFlag
|
|
|
|
var INFO *log.LogFlag
|
|
|
|
var WARN *log.LogFlag
|
|
|
|
var SPEW *log.LogFlag
|
2024-01-08 22:33:43 -06:00
|
|
|
|
2024-01-08 23:53:42 -06:00
|
|
|
var CURL *log.LogFlag
|
|
|
|
var ZONE *log.LogFlag
|
2024-01-05 18:52:47 -06:00
|
|
|
|
2024-01-07 11:23:19 -06:00
|
|
|
func init() {
|
2024-01-08 22:33:43 -06:00
|
|
|
full := "go.wit.com/gui/cloudflare"
|
|
|
|
short := "cfgui"
|
|
|
|
|
2024-01-18 01:33:28 -06:00
|
|
|
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
|
2024-01-08 23:53:42 -06:00
|
|
|
INFO = log.NewFlag("INFO", false, full, short, "general info")
|
2024-01-18 01:33:28 -06:00
|
|
|
WARN = log.NewFlag("WARN", true, full, short, "bad things")
|
2024-01-08 23:53:42 -06:00
|
|
|
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
|
2024-01-08 22:33:43 -06:00
|
|
|
|
2024-01-18 01:33:28 -06:00
|
|
|
CURL = log.NewFlag("CURL", true, full, short, "curl interactions")
|
2024-01-08 23:53:42 -06:00
|
|
|
ZONE = log.NewFlag("ZONE", false, full, short, "zone details")
|
2024-01-05 18:52:47 -06:00
|
|
|
}
|