config

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 5 Imported by: 1

README

Logrus Config

提供Logrus的相关配置


快速上手

全局配置
package main

import (
  "github.com/sirupsen/logrus"
  
  _"github.com/surh-go/logrus_conf"
)

func main() {
  logrus.Info("INFO")
}

Gin
package main

import (
  "github.com/gin-gonic/gin"
  "github.com/surh-go/logrus_conf/middleware"

  _"github.com/surh-go/logrus_conf"
)

func main() {
  r := gin.New()
  r.Use(middleware.GinMiddleware())
  r.Run(":8080")
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL