log

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildInProgressMsg        string = "Build in progress..."
	BuildInProgressSuccessMsg string = "Build in progress... Done."
	BuildInProgressErrorMsg   string = "Build in progress... Error."

	BundleInProgressMsg        string = "Bundle in progress..."
	BundleInProgressSuccessMsg string = "Bundle in progress... Done."
	BundleInProgressErrorMsg   string = "Bundle in progress... Error."

	ContainerBuildInProgressMsg        string = "Building fuzz container..."
	ContainerBuildInProgressSuccessMsg string = "Building fuzz container... Done."
	ContainerBuildInProgressErrorMsg   string = "Building fuzz container... Error."

	ContainerRunInProgressMsg        string = "Running fuzz container..."
	ContainerRunInProgressSuccessMsg string = "Running fuzz container... Done."
	ContainerRunInProgressErrorMsg   string = "Running fuzz container... Error."
)

Variables

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

Output is the primary outlet for the log to write to.

View Source
var VerboseSecondaryOutput io.Writer

VerboseSecondaryOutput captures the complete verbose output of the primary output, even when the command is not called in verbose mode. It provides a secondary output option.

Functions

func CreateCurrentProgressSpinner added in v0.18.0

func CreateCurrentProgressSpinner(style *pterm.Style, msg string)

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 Finding added in v0.33.0

func Finding(a ...any)

func GetPtermErrorStyle added in v0.18.0

func GetPtermErrorStyle() *pterm.Style

func GetPtermSuccessStyle added in v0.18.0

func GetPtermSuccessStyle() *pterm.Style

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 PlainStyle added in v0.33.0

func PlainStyle() bool

func Print

func Print(a ...any)

func Printf

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

Printf writes without any colors

func StopCurrentProgressSpinner added in v0.18.0

func StopCurrentProgressSpinner(style *pterm.Style, msg string)

func Success

func Success(a ...any)

func Successf

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

Successf highlights a message as successful

func UpdateCurrentProgressSpinner added in v0.36.0

func UpdateCurrentProgressSpinner(msg string)

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