logging

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLogger added in v0.0.3

func ContextWithLogger(ctx context.Context, log Logger) context.Context

Types

type Config

type Config struct {
	Channel string
	BuildID string
	Level   string
}

Config is a configuration logger.

type Logger added in v0.0.3

type Logger interface {
	Infof(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	WithFields(map[string]interface{}) Logger
}

Logger is an interface for logger.

func GetLogger added in v0.0.3

func GetLogger(ctx context.Context) Logger

func GetNoopLog added in v0.0.3

func GetNoopLog() Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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