logger

package
v0.0.0-...-97c84cb Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *logrus.Logger

func WithComponent

func WithComponent(component string) *logrus.Entry

Types

type LogConfig

type LogConfig struct {
	LogLevel  string `env:"LOG_LEVEL" help:"Level of logging." default:"info" enum:"trace,debug,info,warn,error"`
	LogFormat string `env:"LOG_FORMAT" help:"Format for logs." default:"text" enum:"text,json"`
}

func (LogConfig) InitLogger

func (c LogConfig) InitLogger(kongCtx *kong.Context)

Jump to

Keyboard shortcuts

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