logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLoggerLevel = logrus.InfoLevel
)

Variables

This section is empty.

Functions

func SetupLogger

func SetupLogger(config *Config) (err error)

SetupLogger when Bootstrap

Types

type Config

type Config struct {
	Level string
}

type Logger

type Logger struct {
	*logrus.Entry
	// contains filtered or unexported fields
}

func GetLogger

func GetLogger(modules ...string) *Logger

GetLogger for the module

Jump to

Keyboard shortcuts

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