log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogger = NewLogger()
View Source
var FieldsContextKey struct{}

Functions

func Error

func Error(v ...interface{})

func Info

func Info(v ...interface{})

Types

type Logger

type Logger interface {
	WithContext(ctx context.Context) Logger
	With(v ...interface{}) Logger
	Info(v ...interface{})
	Error(v ...interface{})
}

func DiscardLogger

func DiscardLogger() Logger

func NewLogger

func NewLogger() Logger

func With

func With(v ...interface{}) Logger

func WithContext

func WithContext(ctx context.Context) Logger

Jump to

Keyboard shortcuts

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