Skip to content

qor/log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logger

A logger middleware for Gin

GoDoc

Usage

import "github.com/qor/log"

func main() {
  router := gin.New()
  router.Use(log.Logger("application.log", 30)) // save logs into application.log, max days is 30
}

License

Released under the MIT License.