Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 690 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 690 Bytes

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