log_helper

package
v1.3.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPTION_LOGGER = "logger"
)

Variables

View Source
var (
	WithLogger, GetLogger = option.New[logrus.FieldLogger](OPTION_LOGGER)
)

Functions

func GetDebugLogger added in v1.1.16

func GetDebugLogger() log.FieldLogger

func NewLogger

func NewLogger(service_name string, level string) (log.FieldLogger, error)

Types

type GetLoggerer

type GetLoggerer struct {
	// contains filtered or unexported fields
}

func NewGetLoggerer

func NewGetLoggerer(logger log.FieldLogger) *GetLoggerer

func (*GetLoggerer) GetLogger

func (l *GetLoggerer) GetLogger() log.FieldLogger

Jump to

Keyboard shortcuts

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