Disable log in golang gin

We would like to disable log in golang gin project.

We don’t want to show any panic or log messages.

If you do not need a log in, then don’t implement a log in… Not sure how this is related to printing panics though…

Try this:
gin.DefaultWriter = io.Discard

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.