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

log

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 8 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 NewSLogger

func NewSLogger(logLevel slog.Level) *SLogger

func (*SLogger) DebugF

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

func (*SLogger) DebugLn

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

func (*SLogger) InfoF

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

func (*SLogger) InfoLn

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

func (*SLogger) Process

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

func (*SLogger) WarnF

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

func (*SLogger) WarnLn

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

Jump to

Keyboard shortcuts

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