/gormrus

Gormrus is a library for integrating Logrus logger with Gorm

Primary LanguageGoMIT LicenseMIT

Gormrus

GoDoc

Overview

Gormrus is a library for integrating Logrus logger with Gorm

Usage

    package main
    import (
        "github.com/jinzhu/gorm"
        _ "github.com/go-sql-driver/mysql"
        "github.com/o1egl/gormrus"
    )

    db, err = gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True&loc=Local")
    db.LogMode(true)
    db.SetLogger(gormrus.New())

Copyright, License & Contributors

Gormrus is released under the MIT license. See LICENSE