gin-logrus icon indicating copy to clipboard operation
gin-logrus copied to clipboard

gin-logrus doesn't replace logs, just adds new ones

Open Yugloocamai opened this issue 7 years ago • 4 comments

I'm getting all the standard GIN logs mixed in with the Logrus ones, following the example.

Yugloocamai avatar Jan 29 '18 01:01 Yugloocamai

You use gin.Default() non ? https://github.com/gin-gonic/gin/blob/master/gin.go#L150

toorop avatar Jan 29 '18 12:01 toorop

use gin.New() don't use gin.Default()

ppmoon avatar Aug 05 '18 05:08 ppmoon

@Yugloocamai Can you update if that worked so that the issue can be closed ?

kishaningithub avatar Apr 14 '20 08:04 kishaningithub

I had the same problem and I can confirm that gin.New() instead of gin.Default() fix the issue

bennesp avatar May 08 '20 13:05 bennesp