Using this file:
package main
import (
"github.com/fatih/color"
"github.com/francoispqt/onelog"
"os"
)
func main() {
onelog.LevelText(onelog.INFO, color.CyanString("INFO"))
aa := onelog.New(os.Stdout, onelog.ALL)
aa.Info("bbbbb")
}
I get this result:
{"level":" [36mINFO [0m","message":"bbbbb"}
Using this file:
I get this result: