log

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Settings{}

Functions

func NewInvalidLogLevelError added in v0.31.0

func NewInvalidLogLevelError(level string, err error) error

Types

type InvalidLogLevelError added in v0.31.0

type InvalidLogLevelError struct {
	Err   error
	Level string
}

func (InvalidLogLevelError) Error added in v0.31.0

func (err InvalidLogLevelError) Error() string

func (InvalidLogLevelError) Is added in v0.31.0

func (InvalidLogLevelError) Is(target error) bool

func (InvalidLogLevelError) Unwrap added in v0.31.0

func (err InvalidLogLevelError) Unwrap() error

type LoggerGetter added in v0.20.0

type LoggerGetter interface {
	Logger() *log.Entry
}

LoggerGetter is an interface that provides logger.

type Settings

type Settings struct {
	// contains filtered or unexported fields
}

Settings stores configuration for logger.

func (*Settings) Flags

func (l *Settings) Flags() []cli.Flag

Flags returns CLI flags for logger settings.

func (*Settings) Format added in v0.27.1

func (l *Settings) Format() string

func (*Settings) Init

func (l *Settings) Init() error

Init initializes logger and sets up hacks for other loggers (used by 3rd party libraries).

func (*Settings) Run

func (l *Settings) Run(c *cli.Context) error

Run initializes logger.

Jump to

Keyboard shortcuts

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