title: how to pass logger middleware output data into the mysql tables in golang?
body: <h2>how do i insert following three parameters output param.method, param.statusCode, param.TimeStamp.Format(time.RFC822) from logger middleware into mysql table?</h2>
  
  <pre><code>func logger() gin.HandlerFunc {
      return gin.LoggerWithFormatter(func(param gin.LogFormatterParams) string {
          return fmt.Sprintf("%s %d %s \n",
              param.Method,
              param.StatusCode,
              param.TimeStamp.Format(time.RFC822),
          )
      })
  }
  </code></pre>