logging

package
v1.6.20 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVerbose

func GetVerbose() bool

GetVerbose returns whether verbose logging is enabled

func Print

func Print(line string)

Print prints the given log line

func SetVerbose

func SetVerbose(verbose bool)

SetVerbose sets verbose logging

Types

type Step

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

Step is a loggable step

func NewStep

func NewStep(test, name string, args ...interface{}) *Step

NewStep returns a new step

func (*Step) Complete

func (s *Step) Complete()

Complete completes the step

func (*Step) Fail

func (s *Step) Fail(err error)

Fail fails the step with the given error

func (*Step) Log

func (s *Step) Log(message string)

Log logs a progress message

func (*Step) Logf

func (s *Step) Logf(message string, args ...interface{})

Logf logs a progress message

func (*Step) Start

func (s *Step) Start()

Start starts the step

Jump to

Keyboard shortcuts

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