Пример #1
0
func main() {
	logger := gol.New()
	logger.Debug("Hidden Hello worold")
	logger.SetLevel(gol.DEBUG)
	logger.Debugf("Foo: %s", "Bar")
	logger.Info("notice message")
	logger.Warn("warning!!!")

}
Пример #2
0
func main() {
	logger := gol.New()
	logger.Error("Hello worold")
	logger.Errorf("Some test: %v", map[string]int{"one": 1, "two": 2})

	err := gore.Newf("Hello %s", "world")
	gore.Append(err, "Foo bar")
	gore.Appendf(err, "Context %s", "info")
	logger.ErrorE(err)

	logger.ErrorE(errors.New("classic work!"))
}
Пример #3
0
func main() {
	logger := gol.New()
	logger.Fatal("Hello worold")
}