logs

package
v0.0.0-...-0ec8b3e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxDebug

func CtxDebug(ctx context.Context, format string, v ...interface{})

func CtxError

func CtxError(ctx context.Context, format string, v ...interface{})

func CtxFatal

func CtxFatal(ctx context.Context, format string, v ...interface{})

func CtxInfo

func CtxInfo(ctx context.Context, format string, v ...interface{})

func CtxWarn

func CtxWarn(ctx context.Context, format string, v ...interface{})

func SetLogger

func SetLogger(log Logger)

Types

type Logger

type Logger interface {
	CtxDebug(ctx context.Context, format string, v ...interface{})
	CtxInfo(ctx context.Context, format string, v ...interface{})
	CtxWarn(ctx context.Context, format string, v ...interface{})
	CtxError(ctx context.Context, format string, v ...interface{})
	CtxFatal(ctx context.Context, format string, v ...interface{})
}

Jump to

Keyboard shortcuts

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