Skip to content

helmwave/logrus-emoji-formatter

Repository files navigation

Logrus emoji formatter

Output

import (
    "os"
	
    "github.com/sirupsen/logrus"
    "github.com/helmwave/logrus-emoji-formatter"
)

func main() {
  log.SetFormatter(&formatter.Config{
    Color: true,
  })
  log.Info("🛠 Your planfile is .helmwave/planfile")

  log.WithFields(log.Fields{
	  "from": "helmwave.yml.tpl",
	  "to":   "helmwave.yml",
  }).Info("📄 Render file")
}

image

Todo

  • add unit test
  • ci for tests