diff options
| author | Jeff Carr <[email protected]> | 2025-01-08 04:08:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-08 04:08:43 -0600 |
| commit | 54f4c4be3d35cc2c86706aed673392a01d5c7e45 (patch) | |
| tree | f4e52a26f33a5ed589e1ddec7f9f75afc1a0c207 | |
| parent | 811e3e108aa88b83dbbc7ff93721d243efcf6dc3 (diff) | |
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | config.go | 2 | ||||
| -rw-r--r-- | log.go | 16 |
3 files changed, 22 insertions, 1 deletions
@@ -1 +1,6 @@ protobuf definition files for zookeeper + +* experimental. at this point, it's just stubbed in +* zookeeper is similar to the apache zookeeper project +* you can use it to maintain the systems in your cluster +* zookeeper works with virtigo to maintain your private cloud @@ -99,7 +99,7 @@ func (m *Machine) ConfigLoad() error { m.Hostname = hostname m.Distro = detectDistro() m.initPackages() - log.Info("zoopb.ConfigLoad()", m.Hostname, "runs", m.Distro, "with", m.Packages.Len(), "packages") + log.Log(INFO, "zoopb.ConfigLoad()", m.Hostname, "runs", m.Distro, "with", m.Packages.Len(), "packages") return nil } @@ -0,0 +1,16 @@ +package zoopb + +import ( + "go.wit.com/log" +) + +var INFO *log.LogFlag +var WARN *log.LogFlag + +func init() { + full := "go.wit.com/lib/protobuf/zoopb" + short := "zoopb" + + INFO = log.NewFlag("INFO", false, full, short, "general forgepb things") + WARN = log.NewFlag("WARN", true, full, short, "zoopb warnings") +} |
