package main import ( "time" "github.com/genofire/logmania/log" logClient "github.com/genofire/logmania/log/hook/client" logOutput "github.com/genofire/logmania/log/hook/output" ) func main() { logClient.Init("ws://localhost:8081", "example", log.DebugLevel) log.Info("startup") log.New().AddField("answer", 42).AddFields(map[string]interface{}{"answer": 3, "foo": "bar"}).Warn("Some spezial") log.Debug("Never shown up") logOutput.ShowTime = false logOutput.AboveLevel = log.DebugLevel log.Debugf("Startup %v", time.Now()) logOutput.ShowTime = true log.Panic("let it crash") }