logger

package
v0.0.0-...-59ffee2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ctx

func Ctx(ctx context.Context) *api.Logger

func NewLogger

func NewLogger(cfg *Config) *api.Logger

Types

type Config

type Config struct {
	Level     string `env:"LOGGER_LEVEL,default=debug"`
	Timestamp bool   `env:"LOGGER_TIMESTAMP,default=true"`
	Caller    bool   `env:"LOGGER_CALLER,default=true"`
	Pretty    bool   `env:"LOGGER_PRETTY,default=true"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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