diff options
| -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") +} |
