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