Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugLogLevel

func DebugLogLevel() int

DebugLogLevel returns level of debug logging requested by the user via MIRROR_DEBUG_LOG environment variable. Level is expressed as a number in range [0, 4] where: - 0 means no debug log at all; - 1 means crane progress logging to stderr; - 2 means 1 + crane warnings are printed to stderr; - 3 means 2 + mirror debug messages are printed to stdout; - 4 means 3 + registry requests and responses are printed to stderr.

Types

type SLogger

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

func NewNop added in v0.20.16

func NewNop() *SLogger

func NewSLogger

func NewSLogger(logLevel slog.Level) *SLogger

func (*SLogger) DebugLn

func (s *SLogger) DebugLn(a ...any)

func (*SLogger) Debugf added in v0.22.2

func (s *SLogger) Debugf(format string, a ...any)

func (*SLogger) InfoLn

func (s *SLogger) InfoLn(a ...any)

func (*SLogger) Infof added in v0.22.2

func (s *SLogger) Infof(format string, a ...any)

func (*SLogger) Process

func (s *SLogger) Process(topic string, run func() error) error

func (*SLogger) WarnLn

func (s *SLogger) WarnLn(a ...any)

func (*SLogger) Warnf added in v0.22.2

func (s *SLogger) Warnf(format string, a ...any)

Jump to

Keyboard shortcuts

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