log

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Settings{}

Functions

This section is empty.

Types

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