log

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Settings{}

Functions

func NewInvalidLogLevelError

func NewInvalidLogLevelError(level string, err error) error

Types

type InvalidLogLevelError

type InvalidLogLevelError struct {
	Err   error
	Level string
}

func (InvalidLogLevelError) Error

func (err InvalidLogLevelError) Error() string

func (InvalidLogLevelError) Unwrap

func (err InvalidLogLevelError) Unwrap() error

type LoggerGetter

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

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(_ *cli.Context) error

Run initializes logger.

Jump to

Keyboard shortcuts

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