😄 logrgorm2 is a logr logging driver for gorm v2
import "github.com/vchitai/logrgorm2"
stdr.SetVerbosity(1)
logger := stdr.NewWithOptions(stdlog.New(os.Stderr, "", stdlog.LstdFlags), stdr.Options{LogCaller: stdr.All})
logger = logger.WithName("logr")
db, err = gorm.Open(sqlite.Open("./db.sqlite"), &gorm.Config{Logger: logger})
$ go get -u github.com/vchitai/logrgorm2