log

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveUpdatingPrinter updatingPrinter
View Source
var Output io.Writer

Functions

func Debug

func Debug(a ...any)

func Debugf

func Debugf(format string, a ...any)

Debugf outputs additional information when the --verbose flag is active

func Error

func Error(err error, a ...any)

func Errorf

func Errorf(err error, format string, a ...any)

Errorf highlights a message as an error and shows the stack strace if the --verbose flag is active

func Info

func Info(a ...any)

func Infof

func Infof(format string, a ...any)

Infof outputs a regular user message without any highlighting

func NewPTermWriter

func NewPTermWriter(out io.Writer) *ptermWriter

NewPTermWriter returns a writer which ensures that the output written by it doesn't mess with the output of an active pterm.SpinnerPrinter.

func Note

func Note(a ...any)

func Notef

func Notef(format string, a ...any)

Notef highlights a message as a note

func Print

func Print(a ...any)

func Printf

func Printf(format string, a ...any)

Printf writes without any colors

func Success

func Success(a ...any)

func Successf

func Successf(format string, a ...any)

Successf highlights a message as successful

func Warn

func Warn(a ...any)

func Warnf

func Warnf(format string, a ...any)

Warnf highlights a message as a warning

Types

This section is empty.

Jump to

Keyboard shortcuts

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