logger

package
v0.0.0-...-d539b93 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logrus.Logger
)

Log is the global Log instance

Functions

func Errorf

func Errorf(format string, args ...any)

func Infof

func Infof(format string, args ...any)

func InitLog

func InitLog()

InitLog should be called in envInit.go's init()

func NewConfiguredLogger

func NewConfiguredLogger(configs LogConfigs) (logger *logrus.Logger)

NewConfiguredLog works for server points

func Warnf

func Warnf(format string, args ...any)

func WithFields

func WithFields(fields logrus.Fields) *logrus.Entry

Types

type LogConfigs

type LogConfigs map[string]any

type ServiceLevel

type ServiceLevel byte
const (
	SERVICE_LEVEL_DEBUG ServiceLevel = iota
	SERVICE_LEVEL_BACKGROUND
)

Jump to

Keyboard shortcuts

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