logger

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugResponse

func DebugResponse(response *http.Response) string

DebugResponse log response body data for debugging

func Init

func Init(version string)

Init logrus

func InitLogToFile

func InitLogToFile()

InitLogToFile set logging output to file

func InitLogToStdout

func InitLogToStdout(level logrus.Level)

InitLogToStdout set logging output to stdout

func LumberJackLogger

func LumberJackLogger(filePath string, maxSize int, maxBackups int, maxAge int) *lumberjack.Logger

LumberJackLogger add LumberJack logging hook for Elasticsearch

Types

This section is empty.

Jump to

Keyboard shortcuts

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