Documentation ¶
Overview ¶
Package log provides logging utilities.
Index ¶
- Variables
- func EnableJSONFormat()
- func FailureStatusEvent(w io.Writer, fmtstr string, a ...interface{})
- func InfoStatusEvent(w io.Writer, fmtstr string, a ...interface{})
- func PendingStatusEvent(w io.Writer, fmtstr string, a ...interface{})
- func Spinner(w io.Writer, fmtstr string, a ...interface{}) func(result Result)
- func SuccessStatusEvent(w io.Writer, fmtstr string, a ...interface{})
- func WarningStatusEvent(w io.Writer, fmtstr string, a ...interface{})
- type Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Yellow = color.New(color.FgHiYellow, color.Bold).SprintFunc() Green = color.New(color.FgHiGreen, color.Bold).SprintFunc() Blue = color.New(color.FgHiBlue, color.Bold).SprintFunc() Cyan = color.New(color.FgCyan, color.Bold, color.Underline).SprintFunc() Red = color.New(color.FgHiRed, color.Bold).Add(color.Italic).SprintFunc() White = color.New(color.FgWhite).SprintFunc() WhiteBold = color.New(color.FgWhite, color.Bold).SprintFunc() )
Colors of term style.
Functions ¶
func FailureStatusEvent ¶
FailureStatusEvent reports on a failure event.
func InfoStatusEvent ¶
InfoStatusEvent reports status information on an event.
func PendingStatusEvent ¶
PendingStatusEvent reports on a pending event.
func SuccessStatusEvent ¶
SuccessStatusEvent reports on a success event.
func WarningStatusEvent ¶
WarningStatusEvent reports on a failure event.
Types ¶
Click to show internal directories.
Click to hide internal directories.