cli

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Types

type EventWriter

type EventWriter struct {
	W io.Writer
	// Labels will be right-aligned within this width.  Will grow throughout
	// logging, but may be initialized to keep the initial output aligned.
	LabelWidth int
	// contains filtered or unexported fields
}

func (*EventWriter) Init

func (w *EventWriter) Init()

func (*EventWriter) PrintEvent

func (w *EventWriter) PrintEvent(sourceID string, t time.Time, label string, message string)

type Logger

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

Wraps underlying logger, teeing output to stderr when in debug mode. Supports suppressing this tee'd output when some region of code has requested exclusive terminal access via beginExclusive/endExclusive.

func (*Logger) Infof

func (l *Logger) Infof(format string, v ...any)

func (*Logger) Sublogger

func (l *Logger) Sublogger(prefix string) logging.Logger

Jump to

Keyboard shortcuts

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