Thursday, March 23, 2023
HomeGolangDisable log in golang gin - Technical Dialogue

Disable log in golang gin – Technical Dialogue


We wish to disable log in golang gin undertaking.

We don’t wish to present any panic or log messages.


If you don’t want a log in, then don’t implement a log in… Undecided how that is associated to printing panics although…

Do this:
gin.SetMode(gin.ReleaseMode)
gin.DefaultWriter = io.Discard

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments