log

package
v0.0.0-...-701c789 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func DebugCtx

func DebugCtx(ctx context.Context, args ...interface{})

func Debugf

func Debugf(format string, args ...interface{})

func DebugfCtx

func DebugfCtx(ctx context.Context, format string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func FatalCtx

func FatalCtx(ctx context.Context, args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func FatalfCtx

func FatalfCtx(ctx context.Context, format string, args ...interface{})

func Info

func Info(args ...interface{})

func InfoCtx

func InfoCtx(ctx context.Context, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func InfofCtx

func InfofCtx(ctx context.Context, format string, args ...interface{})

func Init

func Init(app config.AppConfig)

func MakeContextLogger

func MakeContextLogger(l *logrus.Entry) func(http.Handler) http.Handler

func Panic

func Panic(args ...interface{})

func PanicCtx

func PanicCtx(ctx context.Context, args ...interface{})

func Panicf

func Panicf(format string, args ...interface{})

func PanicfCtx

func PanicfCtx(ctx context.Context, format string, args ...interface{})

func ToContext

func ToContext(ctx context.Context, entry *Entry) context.Context

func Trace

func Trace(args ...interface{})

func TraceCtx

func TraceCtx(ctx context.Context, args ...interface{})

func Tracef

func Tracef(format string, args ...interface{})

func TracefCtx

func TracefCtx(ctx context.Context, format string, args ...interface{})

func Warn

func Warn(args ...interface{})

func WarnCtx

func WarnCtx(ctx context.Context, format string, args ...interface{})

func Warnf

func Warnf(format string, args ...interface{})

func WarnfCtx

func WarnfCtx(ctx context.Context, format string, args ...interface{})

Types

type Entry

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

func Extract

func Extract(ctx context.Context) *Entry

func NewEntry

func NewEntry() *Entry

func (*Entry) Debug

func (e *Entry) Debug(args ...interface{})

func (*Entry) Debugf

func (e *Entry) Debugf(format string, args ...interface{})

func (*Entry) Error

func (e *Entry) Error(args ...interface{})

func (*Entry) Errorf

func (e *Entry) Errorf(format string, args ...interface{})

func (*Entry) Fatal

func (e *Entry) Fatal(args ...interface{})

func (*Entry) Fatalf

func (e *Entry) Fatalf(format string, args ...interface{})

func (*Entry) Info

func (e *Entry) Info(args ...interface{})

func (*Entry) Infof

func (e *Entry) Infof(format string, args ...interface{})

func (*Entry) Panic

func (e *Entry) Panic(args ...interface{})

func (*Entry) Panicf

func (e *Entry) Panicf(format string, args ...interface{})

func (*Entry) Trace

func (e *Entry) Trace(args ...interface{})

func (*Entry) Tracef

func (e *Entry) Tracef(format string, args ...interface{})

func (*Entry) Warn

func (e *Entry) Warn(args ...interface{})

func (*Entry) Warnf

func (e *Entry) Warnf(format string, args ...interface{})

func (*Entry) WithField

func (e *Entry) WithField(key string, value interface{}) *Entry

func (*Entry) WithFields

func (e *Entry) WithFields(fields map[string]interface{}) *Entry

type Fields

type Fields map[string]interface{}

type IFields

type IFields interface {
	map[string]interface{}
}

type LogCtxKeyType

type LogCtxKeyType string
const LogCtxKey LogCtxKeyType = "log"

Jump to

Keyboard shortcuts

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