jeudi 2 avril 2015

how to redirect gin-gonic log to file

does gin-gonic has similar API as martini? can easily re-direct log to a file



m.Map(log.New(f, "[martini]", log.LstdFlags))


or i will have to write my own middleware and do it like below



r := gin.New()
r.Use(MyLogger())




Aucun commentaire:

Enregistrer un commentaire