logrusx

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) logx.Logger

Types

type JsonFormatter

type JsonFormatter logrus.Formatter

type Logger

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

func (Logger) AddHook

func (l Logger) AddHook(hook logrus.Hook)

func (Logger) Sub

func (l Logger) Sub(name string) logx.Logger

func (Logger) WithFieldsX

func (l Logger) WithFieldsX(f func(args ...interface{}), m string, keyvals ...interface{})

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithFormatter

func WithFormatter(l JsonFormatter) Option

type PathMap

type PathMap map[logrus.Level]string

Jump to

Keyboard shortcuts

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