logger

package
v0.0.0-...-d512ffd Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 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

This section is empty.

Functions

This section is empty.

Types

type FuncLogger

type FuncLogger interface {
	Finish()
}

type Logger

type Logger interface {
	DebugFunc(name string) FuncLogger
	NewPrefixed(name string) Logger

	Error(msg string, args ...interface{})
	Info(msg string, args ...interface{})
	Debug(msg string, args ...interface{})
}

type NoopFuncLogger

type NoopFuncLogger struct{}

func (NoopFuncLogger) Finish

func (l NoopFuncLogger) Finish()

type NoopLogger

type NoopLogger struct{}

func NewNoopLogger

func NewNoopLogger() NoopLogger

func NewTODOLogger

func NewTODOLogger() NoopLogger

func (NoopLogger) Debug

func (l NoopLogger) Debug(msg string, args ...interface{})

func (NoopLogger) DebugFunc

func (l NoopLogger) DebugFunc(name string) FuncLogger

func (NoopLogger) Error

func (l NoopLogger) Error(msg string, args ...interface{})

func (NoopLogger) Info

func (l NoopLogger) Info(msg string, args ...interface{})

func (NoopLogger) NewPrefixed

func (l NoopLogger) NewPrefixed(name string) Logger

type UIFuncLogger

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

func (*UIFuncLogger) Finish

func (l *UIFuncLogger) Finish()

func (*UIFuncLogger) Start

func (l *UIFuncLogger) Start()

type UILogger

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

func NewUILogger

func NewUILogger(ui ui.UI) *UILogger

func (*UILogger) Debug

func (l *UILogger) Debug(msg string, args ...interface{})

func (*UILogger) DebugFunc

func (l *UILogger) DebugFunc(name string) FuncLogger

func (*UILogger) Error

func (l *UILogger) Error(msg string, args ...interface{})

func (*UILogger) Info

func (l *UILogger) Info(msg string, args ...interface{})

func (*UILogger) NewPrefixed

func (l *UILogger) NewPrefixed(name string) Logger

func (*UILogger) SetDebug

func (l *UILogger) SetDebug(debug bool)

Jump to

Keyboard shortcuts

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