Skip to content

Instantly share code, notes, and snippets.

View baconstrudel's full-sized avatar
😷

schinkenstrudel baconstrudel

😷
  • www.schnellspesen.com
  • Frankfurt Main
View GitHub Profile
import (
log "github.com/sirupsen/logrus"
"github.com/jinzhu/gorm"
)
type GormLogger struct {}
func (*GormLogger) Print(v ...interface{}) {
if v[0] == "sql" {
log.WithFields(log.Fields{"module": "gorm", "type": "sql"}).Print(v[3])
@brianredbeard
brianredbeard / gin_and_tonic.md
Last active December 10, 2021 16:54
Tonic Recipe