rainbond: github.com/goodrain/rainbond/util/log Index | Files

package log

import "github.com/goodrain/rainbond/util/log"

Index

Package Files

logger.go

func NewStructuredLogger Uses

func NewStructuredLogger(logger *logrus.Logger) func(next http.Handler) http.Handler

NewStructuredLogger new struct

type StructuredLogger Uses

type StructuredLogger struct {
    Logger *logrus.Logger
}

StructuredLogger StructuredLogger

func (*StructuredLogger) NewLogEntry Uses

func (l *StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry

NewLogEntry NewLogEntry

type StructuredLoggerEntry Uses

type StructuredLoggerEntry struct {
    Logger logrus.FieldLogger
}

StructuredLoggerEntry StructuredLoggerEntry

func (*StructuredLoggerEntry) Panic Uses

func (l *StructuredLoggerEntry) Panic(v interface{}, stack []byte)

Panic Panic

func (*StructuredLoggerEntry) Write Uses

func (l *StructuredLoggerEntry) Write(status, bytes int, elapsed time.Duration)

Write Write

Package log imports 5 packages (graph) and is imported by 1 packages. Updated 2018-12-17. Refresh now. Tools for package owners.