summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-27 21:40:06 -0600
committerJeff Carr <[email protected]>2024-11-27 21:40:06 -0600
commited3eacfe75e479e8c36cf7ba82a431c567f83602 (patch)
tree450d0cc89758efd161c426868d6cbc6e4ef470d0 /log.go
parent8b987962ea21a827d50e7f7430ab58b47274ad0e (diff)
first attempt that seems to kinda work on New()
Diffstat (limited to 'log.go')
-rw-r--r--log.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/log.go b/log.go
new file mode 100644
index 0000000..df58886
--- /dev/null
+++ b/log.go
@@ -0,0 +1,16 @@
+package gitpb
+
+import (
+ "go.wit.com/log"
+)
+
+var GITPB *log.LogFlag
+var GITPBWARN *log.LogFlag
+
+func init() {
+ full := "go.wit.com/lib/protobuf/gitpb"
+ short := "gitpb"
+
+ GITPB = log.NewFlag("GITPB", false, full, short, "general gitpb things")
+ GITPBWARN = log.NewFlag("GITPBWARN", true, full, short, "gitpb warnings")
+}