You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package main
-
- import (
- "github.com/Sirupsen/logrus"
- "github.com/mattn/go-colorable"
- )
-
- func main() {
- logrus.SetFormatter(&logrus.TextFormatter{ForceColors: true})
- logrus.SetOutput(colorable.NewColorableStdout())
-
- logrus.Info("succeeded")
- logrus.Warn("not correct")
- logrus.Error("something error")
- logrus.Fatal("panic")
- }
|