log

package
v0.0.0-...-64046f9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, msg string, kvs ...interface{})

Debug message

func Error

func Error(ctx context.Context, msg string, kvs ...interface{})

Error message

func Info

func Info(ctx context.Context, msg string, kvs ...interface{})

Info message

func Log

func Log(ctx context.Context, msg string, kvs ...interface{})

Log message.

func Logger

func Logger(ctx context.Context) log.Logger

Logger returns context logger.

func NewLogger

func NewLogger(debug bool, colors bool) log.Logger

func Warn

func Warn(ctx context.Context, msg string, kvs ...interface{})

Warn message

func With

func With(ctx context.Context, kvs ...interface{}) context.Context

With creates a context with new key values.

func WithLogger

func WithLogger(ctx context.Context, logger log.Logger) context.Context

WithLogger set's context logger

func WithPrefix

func WithPrefix(ctx context.Context, kvs ...interface{}) context.Context

WithPrefix create a context with prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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