log

package
v0.0.0-...-192b259 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel = logrus.DebugLevel
	DefaultLogDir   = "/logs/"
)

Variables

View Source
var DefaultTraceLabel = "traceID"

Functions

func InitLog

func InitLog(conf *model.LogOption)

func LogContext

func LogContext(filter []string) gin.HandlerFunc

func NewContext

func NewContext() context.Context

func SetLogLevel

func SetLogLevel(level string) error

func WithCtx

func WithCtx(c context.Context) *logrus.Entry

Types

type ResultWriter

type ResultWriter struct {
	gin.ResponseWriter
	// contains filtered or unexported fields
}

func (*ResultWriter) Write

func (rw *ResultWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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