log

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IndentationLevel = 0

IndentationLevel controls the amount of indentation of log messages.

Spinner is used to signal long-running actions.

View Source
var Verbose bool

Verbose controls whether debug messages are being printed.

Functions

func Debug

func Debug(format string, a ...interface{})

Debug prints an indented and formatted debug message to os.Stdout if verbose output is selected.

func Error

func Error(format string, a ...interface{})

Error prints an indented and formatted error message to os.Stdout.

func ErrorOccured

func ErrorOccured() bool

ErrorOccured reports whether any errors have occured.

func Fatal

func Fatal(format string, a ...interface{})

Fatal prints an indented and formatted error message to os.Stdout and terminates the program.

func Log

func Log(format string, a ...interface{})

Log prints an indented and formatted message to os.Stdout.

func Success

func Success(format string, a ...interface{})

Success prints an indented and formatted success message to os.Stdout.

func Warning

func Warning(format string, a ...interface{})

Warning prints an indented and formatted warning to os.Stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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