Skip to content
/ gormrus Public

Gormrus is a library for integrating Logrus logger with Gorm

License

Notifications You must be signed in to change notification settings

o1egl/gormrus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gormrus is a library for integrating Logrus logger with Gorm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages