log

package
v0.0.0-...-439d2e9 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package log is a convenience wrapper for logging messages of various levels (associated colors to come) to the terminal. Much of this code has been shamelessly stolen from https://github.com/helm/helm/blob/master/log/log.go

Index

Constants

This section is empty.

Variables

View Source
var IsDebugging = false

IsDebugging toggles whether or not to enable debug output and behavior.

View Source
var Stderr io.Writer = os.Stderr

Stderr is the logging destination for error messages.

View Source
var Stdout io.Writer = os.Stdout

Stdout is the logging destination for normal messages.

Functions

func CleanExit

func CleanExit(format string, v ...interface{})

CleanExit prints a message and then exits with 0.

func Debug

func Debug(msg string, v ...interface{})

Debug prints a cyan-tinted message if IsDebugging is true.

func Err

func Err(format string, v ...interface{})

Err prints an error message. It does not cause an exit.

func Info

func Info(format string, v ...interface{})

Info prints a green-tinted message.

func Msg

func Msg(format string, v ...interface{})

Msg passes through the formatter, but otherwise prints exactly as-is.

No prettification.

func Warn

func Warn(format string, v ...interface{})

Warn prints a yellow-tinted warning message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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