go.wit.com/log change

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-08 23:53:53 -06:00
parent 894f77b3ce
commit 7ac6f3e85b
2 changed files with 4 additions and 2 deletions

View File

@ -6,11 +6,11 @@ import (
"go.wit.com/log"
)
var INFO log.LogFlag
var INFO *log.LogFlag
func init() {
full := "go.wit.com/gui/gadget"
short := "gadgets"
INFO.NewFlag("INFO", false, full, short, "General Info")
INFO = log.NewFlag("INFO", false, full, short, "General Info")
}

View File

@ -29,6 +29,7 @@ func (d *LogSettings) draw() {
d.win = gadgets.NewBasicWindow(d.parent, "Debug Flags")
g = d.win.Box().NewGroup("Show").Pad()
g = g.NewBox("bw vbox", false)
d.buttonG = g
g.NewButton("Redirect STDOUT to /tmp/", func () {
@ -71,6 +72,7 @@ func (d *LogSettings) draw() {
})
d.flagG = d.win.Box().NewGroup("Subsystem (aka package)")
d.flagG = d.flagG.NewBox("bw vbox", false)
g.NewButton("Add all Flags", func () {
flags := log.ShowFlags()