log

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 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 string
const (
	ErrorLevel Level = "error"
	InfoLevel  Level = "info"
	DebugLevel Level = "debug"
)

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