conf

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GOPATH string

GOPATH contains the gopath of the env

View Source
var LogDir string

LogDir is the log directory for logs.json

View Source
var LogFile string

LogFile name

Functions

func NewBeegoHook

func NewBeegoHook() beego.Logger

func NewFileHook

func NewFileHook(w io.Writer, f logrus.Formatter) logrus.Hook

Types

type ContextHook

type ContextHook struct{}

func (ContextHook) Fire

func (hook ContextHook) Fire(entry *logrus.Entry) error

func (ContextHook) Levels

func (hook ContextHook) Levels() []logrus.Level

type FileHook

type FileHook struct {
	// contains filtered or unexported fields
}

func (FileHook) Fire

func (h FileHook) Fire(e *logrus.Entry) error

func (FileHook) Levels

func (h FileHook) Levels() []logrus.Level

Levels returns all logrus levels.

Jump to

Keyboard shortcuts

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