logger

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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(_ string, _ ...interface{})

func (NoopLogger) DebugFunc

func (l NoopLogger) DebugFunc(_ string) FuncLogger

func (NoopLogger) Error

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

func (NoopLogger) Info

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

func (NoopLogger) NewPrefixed

func (l NoopLogger) NewPrefixed(_ 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