From 2d0c73f58e68d34cbd2ab85ba82507d159da28de Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 7 Feb 2024 08:47:06 -0600 Subject: use internal log flags Signed-off-by: Jeff Carr --- flags.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 flags.go (limited to 'flags.go') diff --git a/flags.go b/flags.go new file mode 100644 index 0000000..3c5dd85 --- /dev/null +++ b/flags.go @@ -0,0 +1,28 @@ +package gui + +import ( + "go.wit.com/log" +) + +var INFO *log.LogFlag +var NOW *log.LogFlag +var WARN *log.LogFlag + +var GUI *log.LogFlag +var NODE *log.LogFlag +var PLUG *log.LogFlag +var CHANGE *log.LogFlag + +func init() { + full := "go.wit.com/gui" + short := "gui" + + NOW = log.NewFlag("NOW", true, full, short, "currently debugging things") + WARN = log.NewFlag("WARN", true, full, short, "gui warnings") + + INFO = log.NewFlag("INFO", false, full, short, "General Info") + GUI = log.NewFlag("GUI", false, full, short, "basic GUI internals") + NODE = log.NewFlag("NODE", false, full, short, "binary tree debugging") + PLUG = log.NewFlag("PLUG", false, full, short, "basic PLUG debuggging") + CHANGE = log.NewFlag("CHANGE", false, full, short, "user changed something") +} -- cgit v1.2.3