log

package
v0.0.0-...-273c5a8 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Str

func Str(key, value string) func(logrus.Fields)

Str adds a string field

func With

func With(ctx context.Context, opts ...func(logrus.Fields)) context.Context

With Adds fields

Types

type Logger

type Logger interface {
	logrus.FieldLogger
	WriterLevel(logrus.Level) *io.PipeWriter
}

Logger the Traefik logger

func FromContext

func FromContext(ctx context.Context) Logger

FromContext Gets the logger from context

Jump to

Keyboard shortcuts

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