log

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopLogger = nopLogger{} //nolint:gochecknoglobals // nop implementation

NopLogger is a logger that does nothing.

Functions

This section is empty.

Types

type Config

type Config struct {
	File  *os.File
	Level Level
}

Config is a configuration for the loggers.

func DefaultConfig

func DefaultConfig() *Config

type Level

type Level int32
const (
	ErrorLevel Level = iota
	InfoLevel
	DebugLevel
)

func (Level) String

func (l Level) String() string

type Logger

type Logger interface {
	Errorf(format string, args ...any)
	Infof(format string, args ...any)
	Debugf(format string, args ...any)
}

Logger is the logger used by the forwarder package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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