logger

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logrus.Entry
)

Functions

func New

func New(args interface{}) *logrus.Logger

Types

type Logger added in v0.0.4

type Logger struct {
	Log *logrus.Entry

	Logger *logrus.Logger
	// contains filtered or unexported fields
}

func NewLogger added in v0.0.4

func NewLogger(opts ...Option) *Logger

func (*Logger) Get added in v0.0.4

func (l *Logger) Get() *logrus.Entry

Get logrus entry

func (*Logger) GetLogger added in v0.0.5

func (l *Logger) GetLogger() *logrus.Logger

GetLogger loggers logger

type Option added in v0.0.4

type Option func(*Logger)

func WithFields added in v0.0.4

func WithFields(fields logrus.Fields) Option

func WithLevel added in v0.0.4

func WithLevel(level logrus.Level) Option

func WithName added in v0.0.4

func WithName(name string) Option

func WithPath added in v0.0.4

func WithPath(path string) Option

Jump to

Keyboard shortcuts

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