From 49f8029a5fd9c6b33e4d2f0505dee233cd71cb7f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 18:54:08 -0600 Subject: complete the move to 'go.wit.com/log' Signed-off-by: Jeff Carr --- args.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'args.go') diff --git a/args.go b/args.go index b737d4b..a254c73 100644 --- a/args.go +++ b/args.go @@ -6,10 +6,12 @@ import ( "go.wit.com/log" ) +var INFO log.LogFlag + var GUI log.LogFlag var NODE log.LogFlag var PLUG log.LogFlag -var INFO log.LogFlag +var CHANGE log.LogFlag var argGui ArgsGui @@ -27,8 +29,6 @@ func ArgToolkit() string { func init() { arg.Register(&argGui) - log.Register("gui", "debugGui", &debugGui) - INFO.B = false INFO.Name = "INFO" INFO.Subsystem = "gui" @@ -53,6 +53,12 @@ func init() { PLUG.Desc = "basic PLUG debugging" PLUG.Register() + CHANGE.B = false + CHANGE.Name = "CHANGE" + CHANGE.Subsystem = "gui" + CHANGE.Desc = "user changed something" + CHANGE.Register() + for _, s := range log.ListFlags() { log.Info("go.wit.com/gui/gui ListFlags() returned:", s) } -- cgit v1.2.3