summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-05 20:29:57 -0600
committerJeff Carr <[email protected]>2024-01-05 20:29:57 -0600
commit30832551c35db0e398cee43d302e44b0de2e65bc (patch)
treea325bb60bc94007433594d55e6f4a23b735cf457 /args.go
parent85cbd78883c7a79195eecb59be85e962025b9db5 (diff)
use log Flags
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
-rw-r--r--args.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/args.go b/args.go
new file mode 100644
index 0000000..0c6e9e6
--- /dev/null
+++ b/args.go
@@ -0,0 +1,18 @@
+package gadgets
+
+// initializes logging and command line options
+
+import (
+ "go.wit.com/log"
+)
+
+var INFO log.LogFlag
+
+func init() {
+ INFO.B = false
+ INFO.Name = "INFO"
+ INFO.Subsystem = "gadgets"
+ INFO.Short = "gadgets"
+ INFO.Desc = "general info"
+ INFO.Register()
+}