log api change

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-12 02:21:37 -06:00
parent f3a5cd0db1
commit c070af1d96
1 changed files with 8 additions and 13 deletions

21
args.go
View File

@ -7,8 +7,9 @@ import (
"go.wit.com/log"
)
var INFO log.LogFlag
var POLL log.LogFlag
var NOW *log.LogFlag
var INFO *log.LogFlag
var POLL *log.LogFlag
var argDo ArgsDo
// This struct can be used with the go-arg package
@ -18,16 +19,10 @@ type ArgsDo struct {
func init() {
arg.Register(&argDo)
full := "go.wit.com/gui/digitalocean"
short := "DOgui"
INFO.B = false
INFO.Name = "INFO"
INFO.Subsystem = "digitalocean"
INFO.Desc = "Enable log.Info()"
INFO.Register()
POLL.B = false
POLL.Name = "POLL"
POLL.Subsystem = "digitalocean"
POLL.Desc = "Show droplet status polling"
POLL.Register()
NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
INFO = log.NewFlag("POLL", false, full, short, "show droplet status polling")
}