logging

package
v0.0.0-...-411a92d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGinLogWriter

func GetGinLogWriter() *rotatelogs.RotateLogs

获取gin日志writer

func GetLogrusWriter

func GetLogrusWriter() *rotatelogs.RotateLogs

func Setup

func Setup()

Types

type CodeFormatter

type CodeFormatter struct{}

定义formatter ,实现logrus formatter接口

func (*CodeFormatter) Format

func (f *CodeFormatter) Format(entry *logrus.Entry) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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