log

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package log provides logging functions wraps fmt.Println with options and colors

Index

Constants

This section is empty.

Variables

View Source
var (
	// DiagnosticWriter controls logs output
	DiagnosticWriter = color.Error
)

Functions

func Debug

func Debug(verbose bool, args ...interface{})

Debug writes the message to standard error in grey and with a new line.

func Debugf

func Debugf(verbose bool, format string, args ...interface{})

Debugf formats according to the specifier, colors the message in grey, and writes to standard error.

func Error

func Error(args ...interface{})

Error writes the message to standard error with the default color.

func Errorf added in v0.1.11

func Errorf(format string, args ...interface{})

Errorf writes the message to standard error with the default color.

func Info

func Info(args ...interface{})

Info writes the message to standard error with the default color.

func InfoLight added in v0.1.11

func InfoLight(args ...interface{})

InfoLight writes the message to standard error in grey and with a new line.

func InfoLightf added in v0.1.11

func InfoLightf(format string, args ...interface{})

InfoLightf formats according to the specifier, colors the message in grey, and writes to standard error.

func Infof

func Infof(format string, args ...interface{})

Infof formats according to the specifier, and writes to standard error with the default color.

func Success

func Success(args ...interface{})

Success prefixes the message with a green "✔ Success!", and writes to standard error with a new line.

func Warning

func Warning(args ...interface{})

Warning prefixes the message with a "Note:", colors the *entire* message in yellow, writes to standard error with a new line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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