logrusx

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New .

Types

type Logger

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

Logger .

func (*Logger) SetLevel

func (l *Logger) SetLevel(lvl string) error

SetLevel .

func (*Logger) Sub

func (l *Logger) Sub(name string) logs.Logger

Sub .

type Option

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

Option .

func WithLevel

func WithLevel(level logrus.Level) Option

WithLevel .

func WithName

func WithName(name string) Option

WithName .

Jump to

Keyboard shortcuts

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